diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-20 22:51:01 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-20 22:51:01 +0000 |
commit | 2f59e3827f5bf5dc1cad0a0a393feef965abc6bc (patch) | |
tree | 156a9acb7570a78e31256f03726bd0b8984c8f3e /ppapi/shared_impl/ppapi_globals.h | |
parent | 7969c78bba2a31c8b50f4e19e497bf81694f6388 (diff) | |
download | chromium_src-2f59e3827f5bf5dc1cad0a0a393feef965abc6bc.zip chromium_src-2f59e3827f5bf5dc1cad0a0a393feef965abc6bc.tar.gz chromium_src-2f59e3827f5bf5dc1cad0a0a393feef965abc6bc.tar.bz2 |
Remove TrackerBase.
Fold the methods it provided into the PpapiGlobals base class. Move the
instance and module tracking in the webkit/plugins/ppapi dir out of the
HostResourceTracker (since it has nothing to do with resources) and into the
HostGlobals object (which provides general global object tracking).
TEST=none
BUG=none
Review URL: http://codereview.chromium.org/8335001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106612 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/shared_impl/ppapi_globals.h')
-rw-r--r-- | ppapi/shared_impl/ppapi_globals.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/ppapi/shared_impl/ppapi_globals.h b/ppapi/shared_impl/ppapi_globals.h index d0936ee..db91f72 100644 --- a/ppapi/shared_impl/ppapi_globals.h +++ b/ppapi/shared_impl/ppapi_globals.h @@ -6,10 +6,14 @@ #define PPAPI_SHARED_IMPL_PPAPI_GLOBALS_H_ #include "base/basictypes.h" +#include "ppapi/c/pp_instance.h" +#include "ppapi/c/pp_module.h" +#include "ppapi/proxy/interface_id.h" #include "ppapi/shared_impl/ppapi_shared_export.h" namespace ppapi { +class FunctionGroupBase; class ResourceTracker; class VarTracker; @@ -22,9 +26,19 @@ class PPAPI_SHARED_EXPORT PpapiGlobals { // Getter for the global singleton. inline static PpapiGlobals* Get() { return ppapi_globals_; } + // Retrieves the corresponding tracker. virtual ResourceTracker* GetResourceTracker() = 0; virtual VarTracker* GetVarTracker() = 0; + // Returns the function object corresponding to the given ID, or NULL if + // there isn't one. + virtual FunctionGroupBase* GetFunctionAPI(PP_Instance inst, + proxy::InterfaceID id) = 0; + + // Returns the PP_Module associated with the given PP_Instance, or 0 on + // failure. + virtual PP_Module GetModuleForInstance(PP_Instance instance) = 0; + private: static PpapiGlobals* ppapi_globals_; |