summaryrefslogtreecommitdiffstats
path: root/webkit/plugins/ppapi/resource_tracker.cc
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-01 02:12:55 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-01 02:12:55 +0000
commit1598e4a9f0fe3572b7f2bb9459c26ec208fcbf12 (patch)
tree10cae214da22b6ed0da1d7651fc068e046adc3cd /webkit/plugins/ppapi/resource_tracker.cc
parentd0922eaaa02cf79caaa21f29613e4995fa0d2048 (diff)
downloadchromium_src-1598e4a9f0fe3572b7f2bb9459c26ec208fcbf12.zip
chromium_src-1598e4a9f0fe3572b7f2bb9459c26ec208fcbf12.tar.gz
chromium_src-1598e4a9f0fe3572b7f2bb9459c26ec208fcbf12.tar.bz2
Convert more interfaces to the new thunk system. This goes up to and including
the ones starting with "F". Since this adds a lot more interfaces, I added the macro stuff we used for the old system to generate the various template specializations. This involded a lot of renaming since the As* needs to match the name (I was previously leaving off the "PPB_" part). I did other misc cleanup to the infrastructure. Review URL: http://codereview.chromium.org/7082036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87415 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/plugins/ppapi/resource_tracker.cc')
-rw-r--r--webkit/plugins/ppapi/resource_tracker.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/webkit/plugins/ppapi/resource_tracker.cc b/webkit/plugins/ppapi/resource_tracker.cc
index 7e04f61..ba2ad6b 100644
--- a/webkit/plugins/ppapi/resource_tracker.cc
+++ b/webkit/plugins/ppapi/resource_tracker.cc
@@ -290,6 +290,13 @@ uint32 ResourceTracker::GetLiveObjectsForInstance(
return proxy.get();
}
+PP_Instance ResourceTracker::GetInstanceForResource(PP_Resource pp_resource) {
+ scoped_refptr<Resource> resource(GetResource(pp_resource));
+ if (!resource.get())
+ return 0;
+ return resource->instance()->pp_instance();
+}
+
scoped_refptr<Var> ResourceTracker::GetVar(int32 var_id) const {
DLOG_IF(ERROR, !CheckIdType(var_id, PP_ID_TYPE_VAR))
<< var_id << " is not a PP_Var ID.";