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

Unified Diff: ppapi/shared_impl/tracker_base.h

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 | « ppapi/shared_impl/id_assignment.cc ('k') | ppapi/shared_impl/url_util_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/shared_impl/tracker_base.h
===================================================================
--- ppapi/shared_impl/tracker_base.h (revision 96002)
+++ ppapi/shared_impl/tracker_base.h (working copy)
@@ -15,7 +15,7 @@
class FunctionGroupBase;
class ResourceObjectBase;
-class Var;
+class VarTracker;
// Tracks resource and function APIs, providing a mapping between ID and
// object.
@@ -50,16 +50,7 @@
// resource is invalid.
virtual PP_Instance GetInstanceForResource(PP_Resource resource) = 0;
- // PP_Vars -------------------------------------------------------------------
-
- // Adds a new var to the tracker, returning the new Var ID.
- virtual int32 AddVar(Var* var) = 0;
-
- // Retrieves a var from the tracker, returning an empty scoped ptr on failure.
- virtual scoped_refptr<Var> GetVar(int32 var_id) const = 0;
-
- virtual bool AddRefVar(int32 var_id) = 0;
- virtual bool UnrefVar(int32 var_id) = 0;
+ virtual VarTracker* GetVarTracker() = 0;
};
} // namespace ppapi
« no previous file with comments | « ppapi/shared_impl/id_assignment.cc ('k') | ppapi/shared_impl/url_util_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698