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

Unified Diff: content/public/browser/browser_ppapi_host.h

Issue 11368019: Add support for external out-of-process PPAPI plugins in the browser. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 1 month 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
« no previous file with comments | « content/content_browser.gypi ('k') | content/public/browser/content_browser_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/browser_ppapi_host.h
===================================================================
--- content/public/browser/browser_ppapi_host.h (revision 166155)
+++ content/public/browser/browser_ppapi_host.h (working copy)
@@ -12,7 +12,18 @@
#include "content/public/browser/render_view_host.h"
#include "ppapi/c/pp_instance.h"
+namespace IPC {
+class ChannelProxy;
+struct ChannelHandle;
+class Sender;
+}
+
+namespace net {
+class HostResolver;
+}
+
namespace ppapi {
+class PpapiPermissions;
namespace host {
class PpapiHost;
}
@@ -27,6 +38,19 @@
// lives entirely on the I/O thread.
class CONTENT_EXPORT BrowserPpapiHost {
public:
+ // Creates a browser host and sets up an out-of-process proxy for an external
+ // pepper plugin process.
+ static BrowserPpapiHost* CreateExternalPluginProcess(
+ IPC::Sender* sender,
+ ppapi::PpapiPermissions permissions,
+ base::ProcessHandle plugin_child_process,
+ IPC::ChannelProxy* channel,
+ net::HostResolver* host_resolver,
+ int render_process_id,
+ int render_view_id);
+
+ virtual ~BrowserPpapiHost() {}
+
// Returns the PpapiHost object.
virtual ppapi::host::PpapiHost* GetPpapiHost() = 0;
@@ -48,9 +72,6 @@
virtual bool GetRenderViewIDsForInstance(PP_Instance instance,
int* render_process_id,
int* render_view_id) const = 0;
-
- protected:
- virtual ~BrowserPpapiHost() {}
};
} // namespace content
« no previous file with comments | « content/content_browser.gypi ('k') | content/public/browser/content_browser_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698