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

Unified Diff: chrome/browser/visitedlink/visitedlink_event_listener.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/visitedlink/visitedlink_event_listener.cc
===================================================================
--- chrome/browser/visitedlink/visitedlink_event_listener.cc (revision 91968)
+++ chrome/browser/visitedlink/visitedlink_event_listener.cc (working copy)
@@ -103,11 +103,11 @@
};
VisitedLinkEventListener::VisitedLinkEventListener() {
- registrar_.Add(this, NotificationType::RENDERER_PROCESS_CREATED,
+ registrar_.Add(this, content::NOTIFICATION_RENDERER_PROCESS_CREATED,
NotificationService::AllSources());
- registrar_.Add(this, NotificationType::RENDERER_PROCESS_TERMINATED,
+ registrar_.Add(this, content::NOTIFICATION_RENDERER_PROCESS_TERMINATED,
NotificationService::AllSources());
- registrar_.Add(this, NotificationType::RENDER_WIDGET_VISIBILITY_CHANGED,
+ registrar_.Add(this, content::NOTIFICATION_RENDER_WIDGET_VISIBILITY_CHANGED,
NotificationService::AllSources());
}
@@ -158,11 +158,11 @@
pending_visited_links_.clear();
}
-void VisitedLinkEventListener::Observe(NotificationType type,
+void VisitedLinkEventListener::Observe(int type,
const NotificationSource& source,
const NotificationDetails& details) {
- switch (type.value) {
- case NotificationType::RENDERER_PROCESS_CREATED: {
+ switch (type) {
+ case content::NOTIFICATION_RENDERER_PROCESS_CREATED: {
RenderProcessHost* process = Source<RenderProcessHost>(source).ptr();
updaters_[process->id()] =
make_linked_ptr(new VisitedLinkUpdater(process->id()));
@@ -176,14 +176,14 @@
updaters_[process->id()]->SendVisitedLinkTable(master->shared_memory());
break;
}
- case NotificationType::RENDERER_PROCESS_TERMINATED: {
+ case content::NOTIFICATION_RENDERER_PROCESS_TERMINATED: {
RenderProcessHost* process = Source<RenderProcessHost>(source).ptr();
if (updaters_.count(process->id())) {
updaters_.erase(process->id());
}
break;
}
- case NotificationType::RENDER_WIDGET_VISIBILITY_CHANGED: {
+ case content::NOTIFICATION_RENDER_WIDGET_VISIBILITY_CHANGED: {
RenderWidgetHost* widget = Source<RenderWidgetHost>(source).ptr();
int child_id = widget->process()->id();
if (updaters_.count(child_id))
« no previous file with comments | « chrome/browser/visitedlink/visitedlink_event_listener.h ('k') | chrome/browser/visitedlink/visitedlink_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698