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

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: Fix in-process. Make Chrome tell content when a plugin is a host for external plugins (i.e., NaCl) 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 | « chrome/renderer/pepper/pepper_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."
raymes 2014/05/22 00:25:31 nit: "external plugins".
dmichael (off chromium) 2014/05/22 20:18:02 Technically, the period should be inside the quote
raymes 2014/05/22 23:42:33 Haha ok, I guess I'm used to the "British style" :
+ //
+ // 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;
raymes 2014/05/22 00:25:31 Can we do this without modifying the content API?
dmichael (off chromium) 2014/05/22 20:18:02 Unfortunately, that wouldn't work. That function b
raymes 2014/05/22 23:42:33 I see, thanks for the explanation.
+
// 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 | « chrome/renderer/pepper/pepper_helper.cc ('k') | content/renderer/pepper/message_channel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698