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

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

Issue 290553004: PPAPI: Refactor MessageChannel to prep for sync postMessae (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: move NaClHelper in to nacl namespace Created 6 years, 7 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
« no previous file with comments | « components/nacl/renderer/nacl_helper.cc ('k') | content/renderer/pepper/message_channel.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/renderer/renderer_ppapi_host.h
diff --git a/content/public/renderer/renderer_ppapi_host.h b/content/public/renderer/renderer_ppapi_host.h
index 4e253e2e2cf3418defd69acfdfb1b26a62752ba1..6c843dc30f93de87cb7f77c99d774a9f1dc5c5d8 100644
--- a/content/public/renderer/renderer_ppapi_host.h
+++ b/content/public/renderer/renderer_ppapi_host.h
@@ -123,6 +123,23 @@ class RendererPpapiHost {
// Returns true if the plugin is running in process.
virtual bool IsRunningInProcess() const = 0;
+ virtual std::string GetPluginName() const = 0;
+
+ // Used by the embedder to inform this RendererPpapiHost that the associated
+ // plugin module is a host for "external plugins."
+ //
+ // An embedder may, at the time a plugin module is created, configure it to
+ // be a host for external plugins. Instances of such plugins go through two
+ // two stages of initialization; the first stage initializes a host plugin
+ // instance, which then loads and initializes a child plugin which takes
+ // over control. These are treated as one Pepper Instance, because despite the
+ // two-stage initialization process, the host and child appear to blink as
+ // one plugin instance.
+ //
+ // The host plugin appears as an in-process plugin, while we interact with the
+ // child plugin via the Pepper proxy.
+ virtual void SetToExternalPluginHost() = 0;
+
// There are times when the renderer needs to create a ResourceHost in the
// browser. This function does so asynchronously. |nested_msgs| is a list of
// resource host creation messages and |instance| is the PP_Instance which
« no previous file with comments | « components/nacl/renderer/nacl_helper.cc ('k') | content/renderer/pepper/message_channel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698