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

Unified Diff: content/browser/mach_broker_mac.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
« no previous file with comments | « content/browser/mach_broker_mac.h ('k') | content/browser/plugin_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/mach_broker_mac.cc
===================================================================
--- content/browser/mach_broker_mac.cc (revision 91968)
+++ content/browser/mach_broker_mac.cc (working copy)
@@ -33,16 +33,16 @@
virtual void Run() {
broker_->registrar_.Add(broker_,
- NotificationType::RENDERER_PROCESS_CLOSED,
+ content::NOTIFICATION_RENDERER_PROCESS_CLOSED,
NotificationService::AllSources());
broker_->registrar_.Add(broker_,
- NotificationType::RENDERER_PROCESS_TERMINATED,
+ content::NOTIFICATION_RENDERER_PROCESS_TERMINATED,
NotificationService::AllSources());
broker_->registrar_.Add(broker_,
- NotificationType::CHILD_PROCESS_CRASHED,
+ content::NOTIFICATION_CHILD_PROCESS_CRASHED,
NotificationService::AllSources());
broker_->registrar_.Add(broker_,
- NotificationType::CHILD_PROCESS_HOST_DISCONNECTED,
+ content::NOTIFICATION_CHILD_PROCESS_HOST_DISCONNECTED,
NotificationService::AllSources());
}
@@ -195,7 +195,7 @@
return it->second.mach_task_;
}
-void MachBroker::Observe(NotificationType type,
+void MachBroker::Observe(int type,
const NotificationSource& source,
const NotificationDetails& details) {
// TODO(rohitrao): These notifications do not always carry the proper PIDs,
@@ -203,12 +203,12 @@
// way to listen for child process deaths. http://crbug.com/55734
base::ProcessHandle handle = 0;
switch (type.value) {
- case NotificationType::RENDERER_PROCESS_CLOSED:
- case NotificationType::RENDERER_PROCESS_TERMINATED:
+ case content::NOTIFICATION_RENDERER_PROCESS_CLOSED:
+ case content::NOTIFICATION_RENDERER_PROCESS_TERMINATED:
handle = Source<RenderProcessHost>(source)->GetHandle();
break;
- case NotificationType::CHILD_PROCESS_CRASHED:
- case NotificationType::CHILD_PROCESS_HOST_DISCONNECTED:
+ case content::NOTIFICATION_CHILD_PROCESS_CRASHED:
+ case content::NOTIFICATION_CHILD_PROCESS_HOST_DISCONNECTED:
handle = Details<ChildProcessInfo>(details)->handle();
break;
default:
« no previous file with comments | « content/browser/mach_broker_mac.h ('k') | content/browser/plugin_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698