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 8fda76982f07f6c5106275496178ab10286253f6..40e455e382329efe6dcba7206f03d26c01b77a82 100644 |
--- a/content/public/renderer/renderer_ppapi_host.h |
+++ b/content/public/renderer/renderer_ppapi_host.h |
@@ -13,6 +13,10 @@ class PpapiHost; |
} |
} |
+namespace WebKit { |
+class WebPluginContainer; |
+} |
+ |
namespace content { |
class RenderView; |
@@ -34,6 +38,11 @@ class RendererPpapiHost { |
// instance is invalid. |
virtual RenderView* GetRenderViewForInstance(PP_Instance instance) const = 0; |
+ // Returns teh WebPluginContainer for the given plugin instance, or NULL if |
+ // the instance is invalid. |
+ virtual WebKit::WebPluginContainer* GetContainerForInstance( |
+ PP_Instance instance) const = 0; |
+ |
// Returns true if the given instance is considered to be currently |
// processing a user gesture or the plugin module has the "override user |
// gesture" flag set (in which case it can always do things normally |