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

Unified Diff: content/renderer/pepper/pepper_plugin_delegate_impl.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/renderer/pepper/pepper_plugin_delegate_impl.h
===================================================================
--- content/renderer/pepper/pepper_plugin_delegate_impl.h (revision 162270)
+++ content/renderer/pepper/pepper_plugin_delegate_impl.h (working copy)
@@ -45,6 +45,7 @@
namespace ppapi {
class PepperFilePath;
class PPB_X509Certificate_Fields;
+class PpapiPermissions;
}
namespace ui {
@@ -98,6 +99,15 @@
const webkit::WebPluginInfo& webplugin_info,
bool* pepper_plugin_was_registered);
+ // Sets up the renderer host and out-of-process proxy for an external plugin
+ // module. Returns the renderer host, or NULL if it couldn't be created.
+ RendererPpapiHost* CreateExternalPluginModule(
+ scoped_refptr<webkit::ppapi::PluginModule> module,
+ const FilePath& path,
+ ppapi::PpapiPermissions permissions,
+ const IPC::ChannelHandle& channel_handle,
+ int plugin_child_id);
+
// Creates a browser plugin instance given the process handle, and channel
// handle to access the guest renderer.
// If the plugin fails to initialize then return NULL.
@@ -464,6 +474,15 @@
scoped_refptr<PepperBrokerImpl> CreateBroker(
webkit::ppapi::PluginModule* plugin_module);
+ // Create a new HostDispatcher for proxying, hook it to the PluginModule,
+ // and perform other common initialization.
+ RendererPpapiHost* CreateOutOfProcessModule(
+ webkit::ppapi::PluginModule* module,
+ const FilePath& path,
+ ppapi::PpapiPermissions permissions,
+ const IPC::ChannelHandle& channel_handle,
+ int plugin_child_id);
+
// ContextMenuClient implementation.
virtual void OnMenuAction(int request_id, unsigned action) OVERRIDE;
virtual void OnMenuClosed(int request_id) OVERRIDE;
« no previous file with comments | « content/public/renderer/renderer_ppapi_host.h ('k') | content/renderer/pepper/pepper_plugin_delegate_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698