diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-16 04:25:01 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-16 04:25:01 +0000 |
commit | 53900d507cd50344c2e73bb988671044f1787911 (patch) | |
tree | 7cd58934003dc610f544f8e682ac8c6040715f65 /webkit/glue/plugins/pepper_plugin_delegate.h | |
parent | 047e07212c7da949be3107a70e3fe9ecb160d818 (diff) | |
download | chromium_src-53900d507cd50344c2e73bb988671044f1787911.zip chromium_src-53900d507cd50344c2e73bb988671044f1787911.tar.gz chromium_src-53900d507cd50344c2e73bb988671044f1787911.tar.bz2 |
Implement more of Flush properly. This adds support for waiting on the message
loop so we can now enforce that there is only one pending Flush at a time.
Also removes the ability to have multiple flushes pending at the same time.
TEST=covered by ppapi unit test
BUG=none
Review URL: http://codereview.chromium.org/2862002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49899 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/plugins/pepper_plugin_delegate.h')
-rw-r--r-- | webkit/glue/plugins/pepper_plugin_delegate.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/webkit/glue/plugins/pepper_plugin_delegate.h b/webkit/glue/plugins/pepper_plugin_delegate.h index 9515b17..c00a9b3 100644 --- a/webkit/glue/plugins/pepper_plugin_delegate.h +++ b/webkit/glue/plugins/pepper_plugin_delegate.h @@ -13,6 +13,8 @@ class PlatformCanvas; namespace pepper { +class PluginInstance; + // Virtual interface that the browser implements to implement features for // Pepper plugins. class PluginDelegate { @@ -32,6 +34,14 @@ class PluginDelegate { virtual intptr_t GetSharedMemoryHandle() const = 0; }; + // Indicates that the given instance has been created. + virtual void InstanceCreated(pepper::PluginInstance* instance) = 0; + + // Indicates that the given instance is being destroyed. This is called from + // the destructor, so it's important that the instance is not dereferenced + // from this call. + virtual void InstanceDeleted(pepper::PluginInstance* instance) = 0; + // The caller will own the pointer returned from this. virtual PlatformImage2D* CreateImage2D(int width, int height) = 0; }; |