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 e223094839e2c934c401ee764e50fd9738a207ea..a268d855013976f65646197a7fb238e029ffce2e 100644 |
--- a/content/public/renderer/renderer_ppapi_host.h |
+++ b/content/public/renderer/renderer_ppapi_host.h |
@@ -8,6 +8,7 @@ |
#include "base/memory/ref_counted.h" |
#include "content/common/content_export.h" |
#include "ppapi/c/pp_instance.h" |
+#include "webkit/plugins/ppapi/plugin_delegate.h" |
class FilePath; |
@@ -72,6 +73,11 @@ class RendererPpapiHost { |
virtual WebKit::WebPluginContainer* GetContainerForInstance( |
PP_Instance instance) const = 0; |
+ // Returns the PlatformGraphics2D for the given plugin resource, or NULL if |
+ // the resource is invalid. |
+ virtual webkit::ppapi::PluginDelegate::PlatformGraphics2D* |
+ GetPlatformGraphics2D(PP_Resource resource) = 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 |
@@ -79,6 +85,9 @@ class RendererPpapiHost { |
// if there is no current user gesture. |
virtual bool HasUserGesture(PP_Instance instance) const = 0; |
+ // Returns true if the plugin is running in process. |
+ virtual bool IsRunningInProcess() const = 0; |
+ |
protected: |
virtual ~RendererPpapiHost() {} |
}; |
@@ -86,4 +95,3 @@ class RendererPpapiHost { |
} // namespace content |
#endif // CONTENT_PUBLIC_RENDERER_RENDERER_PPAPI_HOST_H_ |
- |