Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(58)

Unified Diff: webkit/glue/plugins/pepper_plugin_delegate.h

Issue 2862002: Implement more of Flush properly. This adds support for waiting on the messag... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/glue/plugins/pepper_device_context_2d.cc ('k') | webkit/glue/plugins/pepper_plugin_instance.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/plugins/pepper_plugin_delegate.h
===================================================================
--- webkit/glue/plugins/pepper_plugin_delegate.h (revision 49795)
+++ webkit/glue/plugins/pepper_plugin_delegate.h (working copy)
@@ -13,6 +13,8 @@
namespace pepper {
+class PluginInstance;
+
// Virtual interface that the browser implements to implement features for
// Pepper plugins.
class PluginDelegate {
@@ -32,6 +34,14 @@
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;
};
« no previous file with comments | « webkit/glue/plugins/pepper_device_context_2d.cc ('k') | webkit/glue/plugins/pepper_plugin_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698