diff options
Diffstat (limited to 'ppapi/proxy/plugin_dispatcher.cc')
-rw-r--r-- | ppapi/proxy/plugin_dispatcher.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ppapi/proxy/plugin_dispatcher.cc b/ppapi/proxy/plugin_dispatcher.cc index 53dab26..fea4de6 100644 --- a/ppapi/proxy/plugin_dispatcher.cc +++ b/ppapi/proxy/plugin_dispatcher.cc @@ -24,6 +24,7 @@ #include "ppapi/proxy/ppb_instance_proxy.h" #include "ppapi/proxy/ppp_class_proxy.h" #include "ppapi/proxy/resource_creation_proxy.h" +#include "ppapi/shared_impl/resource.h" #include "ppapi/shared_impl/tracker_base.h" #if defined(OS_POSIX) @@ -31,6 +32,8 @@ #include "ipc/ipc_channel_posix.h" #endif +using ppapi::Resource; + namespace pp { namespace proxy { @@ -74,6 +77,11 @@ PluginDispatcher* PluginDispatcher::GetForInstance(PP_Instance instance) { } // static +PluginDispatcher* PluginDispatcher::GetForResource(const Resource* resource) { + return GetForInstance(resource->pp_instance()); +} + +// static const void* PluginDispatcher::GetInterfaceFromDispatcher( const char* interface) { // All interfaces the plugin requests of the browser are "PPB". |