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 |