From 53900d507cd50344c2e73bb988671044f1787911 Mon Sep 17 00:00:00 2001 From: "brettw@chromium.org" Date: Wed, 16 Jun 2010 04:25:01 +0000 Subject: 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 --- webkit/glue/plugins/pepper_plugin_delegate.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'webkit/glue/plugins/pepper_plugin_delegate.h') 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; }; -- cgit v1.1