summaryrefslogtreecommitdiffstats
path: root/webkit/plugins/ppapi/resource_helper.cc
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/plugins/ppapi/resource_helper.cc')
-rw-r--r--webkit/plugins/ppapi/resource_helper.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/webkit/plugins/ppapi/resource_helper.cc b/webkit/plugins/ppapi/resource_helper.cc
index 1959961..0807e2e 100644
--- a/webkit/plugins/ppapi/resource_helper.cc
+++ b/webkit/plugins/ppapi/resource_helper.cc
@@ -17,7 +17,12 @@ namespace ppapi {
// static
PluginInstance* ResourceHelper::GetPluginInstance(
const ::ppapi::Resource* resource) {
- return HostGlobals::Get()->GetInstance(resource->pp_instance());
+ return PPInstanceToPluginInstance(resource->pp_instance());
+}
+
+PluginInstance* ResourceHelper::PPInstanceToPluginInstance(
+ PP_Instance instance) {
+ return HostGlobals::Get()->GetInstance(instance);
}
PluginModule* ResourceHelper::GetPluginModule(