Index: content/public/renderer/renderer_ppapi_host.h |
=================================================================== |
--- content/public/renderer/renderer_ppapi_host.h (revision 162107) |
+++ content/public/renderer/renderer_ppapi_host.h (working copy) |
@@ -5,9 +5,17 @@ |
#ifndef CONTENT_PUBLIC_RENDERER_RENDERER_PPAPI_HOST_H_ |
#define CONTENT_PUBLIC_RENDERER_RENDERER_PPAPI_HOST_H_ |
+#include "base/memory/ref_counted.h" |
#include "ppapi/c/pp_instance.h" |
+class FilePath; |
+ |
+namespace IPC { |
+struct ChannelHandle; |
+} |
+ |
namespace ppapi { |
+class PpapiPermissions; |
namespace host { |
class PpapiHost; |
} |
@@ -17,6 +25,13 @@ |
class WebPluginContainer; |
} |
+namespace webkit { |
+namespace ppapi { |
+class PluginInstance; |
+class PluginModule; |
+} |
+} |
+ |
namespace content { |
class RenderView; |
@@ -50,6 +65,17 @@ |
// if there is no current user gesture. |
virtual bool HasUserGesture(PP_Instance instance) const = 0; |
+ // Creates a host and sets up an out-of-process proxy for an external plugin |
+ // module. Returns the host if the external module is proxied successfully, |
+ // otherwise NULL. |
brettw
2012/10/16 23:37:32
Can the comment here make it clear what the file p
bbudge
2012/10/17 00:18:44
Done. This is only used to construct a PepperHungP
|
+ static RendererPpapiHost* CreateExternalPluginModule( |
jam
2012/10/16 21:14:43
nit: static methods go first in the api
bbudge
2012/10/17 00:18:44
Done.
|
+ scoped_refptr<webkit::ppapi::PluginModule> plugin_module, |
+ webkit::ppapi::PluginInstance* plugin_instance, |
+ const FilePath& file_path, |
+ ppapi::PpapiPermissions permissions, |
+ const IPC::ChannelHandle& channel_handle, |
+ int child_process_id); |
+ |
protected: |
virtual ~RendererPpapiHost() {} |
}; |