summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webplugin.h
diff options
context:
space:
mode:
authorsehr@google.com <sehr@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-17 22:32:29 +0000
committersehr@google.com <sehr@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-17 22:32:29 +0000
commitd439ba076792f1aa83a04ca562382a9af3c0de9d (patch)
tree7d5ab9d4d5c3c56d50eb5b79af3ab660ef0b9f53 /webkit/glue/webplugin.h
parent0877e3db672aa26d89549f545e6e6c64904fec4c (diff)
downloadchromium_src-d439ba076792f1aa83a04ca562382a9af3c0de9d.zip
chromium_src-d439ba076792f1aa83a04ca562382a9af3c0de9d.tar.gz
chromium_src-d439ba076792f1aa83a04ca562382a9af3c0de9d.tar.bz2
Moved Pepper delegate definition to chrome\renderer to allow it to use
code from chrome\common. Also added canvas support and hooked up NPAPI interface functions. No tests have been added yet, so this is probably not fully ready. Review URL: http://codereview.chromium.org/291001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29380 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webplugin.h')
-rw-r--r--webkit/glue/webplugin.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/webkit/glue/webplugin.h b/webkit/glue/webplugin.h
index 1cb24d5..b301dde 100644
--- a/webkit/glue/webplugin.h
+++ b/webkit/glue/webplugin.h
@@ -26,6 +26,7 @@ class WebFrame;
namespace webkit_glue {
+class WebPluginDelegate;
class WebPluginParentView;
class WebPluginResourceClient;
@@ -125,6 +126,11 @@ class WebPlugin {
// Defers the loading of the resource identified by resource_id. This is
// controlled by the defer parameter.
virtual void SetDeferResourceLoading(int resource_id, bool defer) = 0;
+
+ // Gets the WebPluginDelegate that implements the interface.
+ // This API is only for use with Pepper, and hence only with
+ // in renderer process plugins.
+ virtual WebPluginDelegate* delegate() { return NULL; }
};
// Simpler version of ResourceHandleClient that lends itself to proxying.