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

Unified Diff: webkit/plugins/ppapi/npobject_var.cc

Issue 7578001: Unify var tracking between webkit and the proxy. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' 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
« no previous file with comments | « webkit/plugins/ppapi/npobject_var.h ('k') | webkit/plugins/ppapi/plugin_object.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/ppapi/npobject_var.cc
===================================================================
--- webkit/plugins/ppapi/npobject_var.cc (revision 96002)
+++ webkit/plugins/ppapi/npobject_var.cc (working copy)
@@ -46,6 +46,10 @@
return result;
}
+PP_VarType NPObjectVar::GetType() const {
+ return PP_VARTYPE_OBJECT;
+}
+
void NPObjectVar::InstanceDeleted() {
DCHECK(pp_instance_);
pp_instance_ = 0;
@@ -55,8 +59,8 @@
scoped_refptr<NPObjectVar> NPObjectVar::FromPPVar(PP_Var var) {
if (var.type != PP_VARTYPE_OBJECT)
return scoped_refptr<NPObjectVar>(NULL);
- scoped_refptr<Var> var_object(webkit::ppapi::ResourceTracker::Get()->GetVar(
- static_cast<int32>(var.value.as_id)));
+ scoped_refptr<Var> var_object(
+ webkit::ppapi::ResourceTracker::Get()->GetVarTracker()->GetVar(var));
if (!var_object)
return scoped_refptr<NPObjectVar>();
return scoped_refptr<NPObjectVar>(var_object->AsNPObjectVar());
« no previous file with comments | « webkit/plugins/ppapi/npobject_var.h ('k') | webkit/plugins/ppapi/plugin_object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698