diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-18 03:47:48 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-18 03:47:48 +0000 |
commit | 6dffde32e9bf00108ebe936b06f02fc80ed09fb4 (patch) | |
tree | d2da2ecf38102a7b7997bbf5a3542a588fbeb330 /chrome/browser/plugin_process_host.h | |
parent | 8c6add3b6648649eeadb60abdecbf6a1bec01860 (diff) | |
download | chromium_src-6dffde32e9bf00108ebe936b06f02fc80ed09fb4.zip chromium_src-6dffde32e9bf00108ebe936b06f02fc80ed09fb4.tar.gz chromium_src-6dffde32e9bf00108ebe936b06f02fc80ed09fb4.tar.bz2 |
Take out common functionality from PluginProcessHost and move it to ChildProcessHost.
Review URL: http://codereview.chromium.org/21443
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9935 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/plugin_process_host.h')
-rw-r--r-- | chrome/browser/plugin_process_host.h | 31 |
1 files changed, 3 insertions, 28 deletions
diff --git a/chrome/browser/plugin_process_host.h b/chrome/browser/plugin_process_host.h index f9b79f4..78b4f9d 100644 --- a/chrome/browser/plugin_process_host.h +++ b/chrome/browser/plugin_process_host.h @@ -8,13 +8,11 @@ #include <vector> #include "base/basictypes.h" -#include "base/object_watcher.h" #include "base/scoped_ptr.h" #include "base/task.h" #include "chrome/browser/net/resolve_proxy_msg_helper.h" #include "chrome/browser/renderer_host/resource_message_filter.h" -#include "chrome/common/child_process_info.h" -#include "chrome/common/ipc_channel.h" +#include "chrome/common/child_process_host.h" #include "webkit/glue/webplugin.h" class ResourceDispatcherHost; @@ -30,13 +28,10 @@ class GURL; // starting the plugin process when a plugin is created that doesn't already // have a process. After that, most of the communication is directly between // the renderer and plugin processes. -class PluginProcessHost : public ChildProcessInfo, - public IPC::Channel::Listener, - public IPC::Message::Sender, - public base::ObjectWatcher::Delegate, +class PluginProcessHost : public ChildProcessHost, public ResolveProxyMsgHelper::Delegate { public: - PluginProcessHost(); + PluginProcessHost(MessageLoop* main_message_loop); ~PluginProcessHost(); // Initialize the new plugin process, returning true on success. This must @@ -47,13 +42,6 @@ class PluginProcessHost : public ChildProcessInfo, const std::string& activex_clsid, const std::wstring& locale); - // IPC::Message::Sender implementation: - virtual bool Send(IPC::Message* msg); - - // ObjectWatcher::Delegate implementation: - virtual void OnObjectSignaled(HANDLE object); - - // IPC::Channel::Listener implementation: virtual void OnMessageReceived(const IPC::Message& msg); virtual void OnChannelConnected(int32 peer_pid); virtual void OnChannelError(); @@ -136,19 +124,6 @@ class PluginProcessHost : public ChildProcessInfo, // the plugin process, but haven't heard back about yet. std::vector<ChannelRequest> sent_requests_; - // Used to watch the plugin process handle. - base::ObjectWatcher watcher_; - - // true while we're waiting the channel to be opened. In the meantime, - // plugin instance requests will be buffered. - bool opening_channel_; - - // The IPC::Channel. - scoped_ptr<IPC::Channel> channel_; - - // IPC Channel's id. - std::wstring channel_id_; - // Information about the plugin. WebPluginInfo info_; |