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

Unified Diff: ppapi/proxy/plugin_dispatcher.h

Issue 7629017: Add a unified resource tracker shared between the proxy and the impl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments Created 9 years, 4 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
Index: ppapi/proxy/plugin_dispatcher.h
diff --git a/ppapi/proxy/plugin_dispatcher.h b/ppapi/proxy/plugin_dispatcher.h
index ae6da6045e0e04daf303ecad183f61b6e3491f09..b2fbeec549dcab28665844c5befd351b1d64ddef 100644
--- a/ppapi/proxy/plugin_dispatcher.h
+++ b/ppapi/proxy/plugin_dispatcher.h
@@ -26,6 +26,7 @@ class WaitableEvent;
namespace ppapi {
struct Preferences;
+class Resource;
}
namespace pp {
@@ -84,6 +85,10 @@ class PluginDispatcher : public Dispatcher {
// DidCreateInstance/DidDestroyInstance.
static PluginDispatcher* GetForInstance(PP_Instance instance);
+ // Same as GetForInstance but retrieves the instance from the given resource
+ // object as a convenience. Returns NULL on failure.
+ static PluginDispatcher* GetForResource(const ppapi::Resource* resource);
+
static const void* GetInterfaceFromDispatcher(const char* interface);
// You must call this function before anything else. Returns true on success.

Powered by Google App Engine
This is Rietveld 408576698