diff options
author | ananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-10 15:52:27 +0000 |
---|---|---|
committer | ananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-10 15:52:27 +0000 |
commit | 43211582b1fa8c69136385250e7b0446cf364b5c (patch) | |
tree | 655ab01543012b6fd5699dee8fab92876959b7d9 /content/browser/browser_child_process_host.cc | |
parent | d43970a7ceee5fc5433787b0f28b64234a4039f2 (diff) | |
download | chromium_src-43211582b1fa8c69136385250e7b0446cf364b5c.zip chromium_src-43211582b1fa8c69136385250e7b0446cf364b5c.tar.gz chromium_src-43211582b1fa8c69136385250e7b0446cf364b5c.tar.bz2 |
Moving notification types which are chrome specific to a new header file chrome_notification_types.h.
This file lives in chrome\common. The chrome specific notifications start from NOTIFICATION_CONTENT_END
which defines the end of the enum used by content to define notification types. The notificaton_type.h file
in content\common has been renamed to content_notification_types.h
BUG=76698
Review URL: http://codereview.chromium.org/7327007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91972 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/browser_child_process_host.cc')
-rw-r--r-- | content/browser/browser_child_process_host.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/content/browser/browser_child_process_host.cc b/content/browser/browser_child_process_host.cc index 4a65aa0..22a777d 100644 --- a/content/browser/browser_child_process_host.cc +++ b/content/browser/browser_child_process_host.cc @@ -35,7 +35,7 @@ static base::LazyInstance<ChildProcessList> g_child_process_list( 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 @@ class ChildNotificationTask : public Task { } private: - NotificationType notification_type_; + int notification_type_; ChildProcessInfo info_; }; @@ -113,7 +113,7 @@ void BrowserChildProcessHost::SetTerminateChildOnShutdown( 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 @@ void BrowserChildProcessHost::OnChildDied() { 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 @@ void BrowserChildProcessHost::OnChildDied() { 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 @@ void BrowserChildProcessHost::OnChildDied() { break; } // Notify in the main loop of the disconnection. - Notify(NotificationType::CHILD_PROCESS_HOST_DISCONNECTED); + Notify(content::NOTIFICATION_CHILD_PROCESS_HOST_DISCONNECTED); } ChildProcessHost::OnChildDied(); } |