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

Unified Diff: content/browser/browser_child_process_host.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/browser_child_process_host.h ('k') | content/browser/cert_store.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/browser_child_process_host.cc
===================================================================
--- content/browser/browser_child_process_host.cc (revision 91968)
+++ content/browser/browser_child_process_host.cc (working copy)
@@ -35,7 +35,7 @@
class ChildNotificationTask : public Task {
public:
ChildNotificationTask(
- NotificationType notification_type, ChildProcessInfo* info)
+ int notification_type, ChildProcessInfo* info)
: notification_type_(notification_type), info_(*info) { }
virtual void Run() {
@@ -45,7 +45,7 @@
}
private:
- NotificationType notification_type_;
+ int notification_type_;
ChildProcessInfo info_;
};
@@ -113,7 +113,7 @@
child_process_->SetTerminateChildOnShutdown(terminate_on_shutdown);
}
-void BrowserChildProcessHost::Notify(NotificationType type) {
+void BrowserChildProcessHost::Notify(int type) {
BrowserThread::PostTask(
BrowserThread::UI, FROM_HERE, new ChildNotificationTask(type, this));
}
@@ -133,7 +133,7 @@
OnProcessCrashed(exit_code);
// Report that this child process crashed.
- Notify(NotificationType::CHILD_PROCESS_CRASHED);
+ Notify(content::NOTIFICATION_CHILD_PROCESS_CRASHED);
UMA_HISTOGRAM_COUNTS("ChildProcess.Crashes", this->type());
break;
}
@@ -141,7 +141,7 @@
OnProcessWasKilled(exit_code);
// Report that this child process was killed.
- Notify(NotificationType::CHILD_PROCESS_WAS_KILLED);
+ Notify(content::NOTIFICATION_CHILD_PROCESS_WAS_KILLED);
UMA_HISTOGRAM_COUNTS("ChildProcess.Kills", this->type());
break;
}
@@ -149,7 +149,7 @@
break;
}
// Notify in the main loop of the disconnection.
- Notify(NotificationType::CHILD_PROCESS_HOST_DISCONNECTED);
+ Notify(content::NOTIFICATION_CHILD_PROCESS_HOST_DISCONNECTED);
}
ChildProcessHost::OnChildDied();
}
« no previous file with comments | « content/browser/browser_child_process_host.h ('k') | content/browser/cert_store.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698