diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-19 03:07:55 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-19 03:07:55 +0000 |
commit | 86ab86b73e4167c4bcf19c16bf08ca9a780fb48b (patch) | |
tree | 9154a52a53f85e739c59f43fe34a3cc7963cc06f /chrome/browser/geolocation | |
parent | fccf2fb4583e78321e5da59dfba0c8b2021f914e (diff) | |
download | chromium_src-86ab86b73e4167c4bcf19c16bf08ca9a780fb48b.zip chromium_src-86ab86b73e4167c4bcf19c16bf08ca9a780fb48b.tar.gz chromium_src-86ab86b73e4167c4bcf19c16bf08ca9a780fb48b.tar.bz2 |
Move notification_source from content/common to content/browser/public and put it into the content namespace.
BUG=98716
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106203 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/geolocation')
-rw-r--r-- | chrome/browser/geolocation/chrome_geolocation_permission_context.cc | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/chrome/browser/geolocation/chrome_geolocation_permission_context.cc b/chrome/browser/geolocation/chrome_geolocation_permission_context.cc index a685bf8..a9c98d2 100644 --- a/chrome/browser/geolocation/chrome_geolocation_permission_context.cc +++ b/chrome/browser/geolocation/chrome_geolocation_permission_context.cc @@ -26,8 +26,8 @@ #include "content/browser/geolocation/geolocation_provider.h" #include "content/browser/renderer_host/render_view_host.h" #include "content/browser/tab_contents/tab_contents.h" -#include "content/common/notification_registrar.h" -#include "content/common/notification_source.h" +#include "content/public/browser/notification_registrar.h" +#include "content/public/browser/notification_source.h" #include "content/public/browser/notification_types.h" #include "grit/generated_resources.h" #include "grit/locale_settings.h" @@ -47,7 +47,7 @@ // things listening for such notifications. // For the time being this class is self-contained and it doesn't seem pulling // the notification infrastructure would simplify. -class GeolocationInfoBarQueueController : NotificationObserver { +class GeolocationInfoBarQueueController : content::NotificationObserver { public: GeolocationInfoBarQueueController( ChromeGeolocationPermissionContext* geolocation_permission_context, @@ -83,10 +83,10 @@ class GeolocationInfoBarQueueController : NotificationObserver { const GURL& embedder, bool allowed); - // NotificationObserver + // content::NotificationObserver virtual void Observe(int type, - const NotificationSource& source, - const NotificationDetails& details); + const content::NotificationSource& source, + const content::NotificationDetails& details); private: struct PendingInfoBarRequest; @@ -101,7 +101,7 @@ class GeolocationInfoBarQueueController : NotificationObserver { PendingInfoBarRequests::iterator CancelInfoBarRequestInternal( PendingInfoBarRequests::iterator i); - NotificationRegistrar registrar_; + content::NotificationRegistrar registrar_; ChromeGeolocationPermissionContext* const geolocation_permission_context_; Profile* const profile_; @@ -424,11 +424,11 @@ void GeolocationInfoBarQueueController::OnPermissionSet( } void GeolocationInfoBarQueueController::Observe( - int type, const NotificationSource& source, - const NotificationDetails& details) { + int type, const content::NotificationSource& source, + const content::NotificationDetails& details) { registrar_.Remove(this, content::NOTIFICATION_TAB_CONTENTS_DESTROYED, source); - TabContents* tab_contents = Source<TabContents>(source).ptr(); + TabContents* tab_contents = content::Source<TabContents>(source).ptr(); for (PendingInfoBarRequests::iterator i = pending_infobar_requests_.begin(); i != pending_infobar_requests_.end();) { if (i->infobar_delegate == NULL && @@ -459,9 +459,9 @@ void GeolocationInfoBarQueueController::ShowQueuedInfoBar(int render_process_id, if (!i->infobar_delegate) { if (!registrar_.IsRegistered( this, content::NOTIFICATION_TAB_CONTENTS_DESTROYED, - Source<TabContents>(tab_contents))) { + content::Source<TabContents>(tab_contents))) { registrar_.Add(this, content::NOTIFICATION_TAB_CONTENTS_DESTROYED, - Source<TabContents>(tab_contents)); + content::Source<TabContents>(tab_contents)); } i->infobar_delegate = new GeolocationConfirmInfoBarDelegate( wrapper->infobar_tab_helper(), this, render_process_id, |