Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1751)

Unified Diff: content/public/renderer/renderer_ppapi_host.h

Issue 11140046: Add a content API to connect a Native Client module to an out-of-process PPAPI proxy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/public/renderer/renderer_ppapi_host.h
===================================================================
--- content/public/renderer/renderer_ppapi_host.h (revision 162270)
+++ content/public/renderer/renderer_ppapi_host.h (working copy)
@@ -5,9 +5,18 @@
#ifndef CONTENT_PUBLIC_RENDERER_RENDERER_PPAPI_HOST_H_
#define CONTENT_PUBLIC_RENDERER_RENDERER_PPAPI_HOST_H_
+#include "base/memory/ref_counted.h"
+#include "content/common/content_export.h"
#include "ppapi/c/pp_instance.h"
+class FilePath;
+
+namespace IPC {
+struct ChannelHandle;
+}
+
namespace ppapi {
+class PpapiPermissions;
namespace host {
class PpapiHost;
}
@@ -17,6 +26,13 @@
class WebPluginContainer;
}
+namespace webkit {
+namespace ppapi {
+class PluginInstance;
+class PluginModule;
+}
+}
+
namespace content {
class RenderView;
@@ -27,6 +43,19 @@
// There will be one of these objects in the renderer per plugin module.
class RendererPpapiHost {
public:
+ // Creates a host and sets up an out-of-process proxy for an external plugin
+ // module. |file_path| should identify the module. It is only used to report
+ // failures to the renderer.
+ // Returns a host if the external module is proxied successfully, otherwise
+ // returns NULL.
+ CONTENT_EXPORT static RendererPpapiHost* CreateExternalPluginModule(
+ 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 plugin_child_id);
+
// Returns the PpapiHost object.
virtual ppapi::host::PpapiHost* GetPpapiHost() = 0;
« no previous file with comments | « chrome/renderer/pepper/ppb_nacl_private_impl.cc ('k') | content/renderer/pepper/pepper_plugin_delegate_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698