diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-20 06:29:23 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-20 06:29:23 +0000 |
commit | 3b0032a7abc9cc9350253d4f66dcd9a367e206ab (patch) | |
tree | 3c7ae09453fe79f47ed7e0b5095aef5518bb4e95 /chrome/service | |
parent | 1027ebc3ec3fbb9fd44112e42bb06906895712bb (diff) | |
download | chromium_src-3b0032a7abc9cc9350253d4f66dcd9a367e206ab.zip chromium_src-3b0032a7abc9cc9350253d4f66dcd9a367e206ab.tar.gz chromium_src-3b0032a7abc9cc9350253d4f66dcd9a367e206ab.tar.bz2 |
Add a Content API around BrowserChildProcessHost, similar to what was done with ChildProcessHost. Now classes like PluginProcessHost don't derive from it, but instead use composition.
I've also moved the iterator class into its own file in the public directory. Since classes don't derive from BrowserChildProcessHost and so can't static_cast from it, I added a template helper that does this.
BUG=98716
Review URL: https://chromiumcodereview.appspot.com/9150017
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118415 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/service')
-rw-r--r-- | chrome/service/service_utility_process_host.cc | 7 | ||||
-rw-r--r-- | chrome/service/service_utility_process_host.h | 2 |
2 files changed, 0 insertions, 9 deletions
diff --git a/chrome/service/service_utility_process_host.cc b/chrome/service/service_utility_process_host.cc index 91f6627..e3a0000 100644 --- a/chrome/service/service_utility_process_host.cc +++ b/chrome/service/service_utility_process_host.cc @@ -152,10 +152,6 @@ FilePath ServiceUtilityProcessHost::GetUtilityProcessCmd() { return ChildProcessHost::GetChildPath(flags); } -bool ServiceUtilityProcessHost::CanShutdown() { - return true; -} - void ServiceUtilityProcessHost::OnChildDisconnected() { if (waiting_for_reply_) { // If we are yet to receive a reply then notify the client that the @@ -166,9 +162,6 @@ void ServiceUtilityProcessHost::OnChildDisconnected() { delete this; } -void ServiceUtilityProcessHost::ShutdownStarted() { -} - bool ServiceUtilityProcessHost::OnMessageReceived(const IPC::Message& message) { bool handled = true; IPC_BEGIN_MESSAGE_MAP(ServiceUtilityProcessHost, message) diff --git a/chrome/service/service_utility_process_host.h b/chrome/service/service_utility_process_host.h index 0b91776..3fb3a45 100644 --- a/chrome/service/service_utility_process_host.h +++ b/chrome/service/service_utility_process_host.h @@ -108,9 +108,7 @@ class ServiceUtilityProcessHost : public content::ChildProcessHostDelegate { virtual FilePath GetUtilityProcessCmd(); // ChildProcessHostDelegate implementation: - virtual bool CanShutdown() OVERRIDE; virtual void OnChildDisconnected() OVERRIDE; - virtual void ShutdownStarted() OVERRIDE; virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; private: |