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

Unified Diff: ppapi/shared_impl/tracker_base.h

Issue 7629017: Add a unified resource tracker shared between the proxy and the impl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments 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
Index: ppapi/shared_impl/tracker_base.h
diff --git a/ppapi/shared_impl/tracker_base.h b/ppapi/shared_impl/tracker_base.h
index 4b45a7959c4068e7d981c72c1041ee3aacc01e80..63585ea728a7543546d1bd3e4543ae0da635dcbe 100644
--- a/ppapi/shared_impl/tracker_base.h
+++ b/ppapi/shared_impl/tracker_base.h
@@ -14,7 +14,7 @@
namespace ppapi {
class FunctionGroupBase;
-class ResourceObjectBase;
+class ResourceTracker;
class VarTracker;
// Tracks resource and function APIs, providing a mapping between ID and
@@ -37,20 +37,13 @@ class TrackerBase {
// Init() first (it should be unnecessary to NULL-check this).
static TrackerBase* Get();
- // Returns the resource object corresponding to the given ID, or NULL if
- // there isn't one.
- virtual ResourceObjectBase* GetResourceAPI(PP_Resource res) = 0;
-
// Returns the function object corresponding to the given ID, or NULL if
// there isn't one.
virtual FunctionGroupBase* GetFunctionAPI(PP_Instance inst,
pp::proxy::InterfaceID id) = 0;
- // Returns the instance corresponding to the given resource, or 0 if the
- // resource is invalid.
- virtual PP_Instance GetInstanceForResource(PP_Resource resource) = 0;
-
virtual VarTracker* GetVarTracker() = 0;
+ virtual ResourceTracker* GetResourceTracker() = 0;
};
} // namespace ppapi

Powered by Google App Engine
This is Rietveld 408576698