Index: content/browser/plugin_process_host.h |
=================================================================== |
--- content/browser/plugin_process_host.h (revision 118420) |
+++ content/browser/plugin_process_host.h (working copy) |
@@ -14,13 +14,17 @@ |
#include <vector> |
#include "base/basictypes.h" |
+#include "base/compiler_specific.h" |
#include "base/memory/ref_counted.h" |
-#include "content/browser/browser_child_process_host.h" |
#include "content/common/content_export.h" |
+#include "content/public/browser/browser_child_process_host_delegate.h" |
+#include "content/public/browser/browser_child_process_host_iterator.h" |
#include "ipc/ipc_channel_proxy.h" |
#include "webkit/plugins/webplugininfo.h" |
#include "ui/gfx/native_widget_types.h" |
+class BrowserChildProcessHost; |
+ |
namespace content { |
class ResourceContext; |
} |
@@ -41,7 +45,9 @@ |
// 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 CONTENT_EXPORT PluginProcessHost : public BrowserChildProcessHost { |
+class CONTENT_EXPORT PluginProcessHost |
+ : public content::BrowserChildProcessHostDelegate, |
+ public IPC::Message::Sender { |
public: |
class Client { |
public: |
@@ -65,6 +71,9 @@ |
PluginProcessHost(); |
virtual ~PluginProcessHost(); |
+ // IPC::Message::Sender implementation: |
+ virtual bool Send(IPC::Message* message) OVERRIDE; |
+ |
// Initialize the new plugin process, returning true on success. This must |
// be called before the object can be used. |
bool Init(const webkit::WebPluginInfo& info); |
@@ -169,7 +178,17 @@ |
bool plugin_cursor_visible_; |
#endif |
+ scoped_ptr<BrowserChildProcessHost> process_; |
+ |
DISALLOW_COPY_AND_ASSIGN(PluginProcessHost); |
}; |
+class PluginProcessHostIterator |
+ : public content::BrowserChildProcessHostTypeIterator<PluginProcessHost> { |
+ public: |
+ PluginProcessHostIterator() |
+ : content::BrowserChildProcessHostTypeIterator<PluginProcessHost>( |
+ content::PROCESS_TYPE_PLUGIN) {} |
+}; |
+ |
#endif // CONTENT_BROWSER_PLUGIN_PROCESS_HOST_H_ |