Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6248)

Unified Diff: chrome/browser/extensions/extension_tab_id_map.cc

Issue 7327007: Moving notification types which are chrome specific to a new header file chrome_notification_type... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/extension_tab_id_map.cc
===================================================================
--- chrome/browser/extensions/extension_tab_id_map.cc (revision 91968)
+++ chrome/browser/extensions/extension_tab_id_map.cc (working copy)
@@ -31,7 +31,7 @@
private:
// NotificationObserver interface.
- virtual void Observe(NotificationType type,
+ virtual void Observe(int type,
const NotificationSource& source,
const NotificationDetails& details);
@@ -40,11 +40,11 @@
ExtensionTabIdMap::TabObserver::TabObserver() {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
- registrar_.Add(this, NotificationType::RENDER_VIEW_HOST_CREATED_FOR_TAB,
+ registrar_.Add(this, content::NOTIFICATION_RENDER_VIEW_HOST_CREATED_FOR_TAB,
NotificationService::AllSources());
- registrar_.Add(this, NotificationType::RENDER_VIEW_HOST_DELETED,
+ registrar_.Add(this, content::NOTIFICATION_RENDER_VIEW_HOST_DELETED,
NotificationService::AllSources());
- registrar_.Add(this, NotificationType::TAB_PARENTED,
+ registrar_.Add(this, content::NOTIFICATION_TAB_PARENTED,
NotificationService::AllSources());
}
@@ -53,10 +53,10 @@
}
void ExtensionTabIdMap::TabObserver::Observe(
- NotificationType type, const NotificationSource& source,
+ int type, const NotificationSource& source,
const NotificationDetails& details) {
- switch (type.value) {
- case NotificationType::RENDER_VIEW_HOST_CREATED_FOR_TAB: {
+ switch (type) {
+ case content::NOTIFICATION_RENDER_VIEW_HOST_CREATED_FOR_TAB: {
TabContents* contents = Source<TabContents>(source).ptr();
TabContentsWrapper* tab =
TabContentsWrapper::GetCurrentWrapperForContents(contents);
@@ -75,7 +75,7 @@
tab->restore_tab_helper()->window_id().id()));
break;
}
- case NotificationType::TAB_PARENTED: {
+ case content::NOTIFICATION_TAB_PARENTED: {
TabContentsWrapper* tab = Source<TabContentsWrapper>(source).ptr();
RenderViewHost* host = tab->render_view_host();
BrowserThread::PostTask(
@@ -88,7 +88,7 @@
tab->restore_tab_helper()->window_id().id()));
break;
}
- case NotificationType::RENDER_VIEW_HOST_DELETED: {
+ case content::NOTIFICATION_RENDER_VIEW_HOST_DELETED: {
RenderViewHost* host = Source<RenderViewHost>(source).ptr();
BrowserThread::PostTask(
BrowserThread::IO, FROM_HERE,
« no previous file with comments | « chrome/browser/extensions/extension_tab_helper.cc ('k') | chrome/browser/extensions/extension_tabs_module.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698