summaryrefslogtreecommitdiffstats
path: root/ppapi/shared_impl/ppapi_globals.h
diff options
context:
space:
mode:
Diffstat (limited to 'ppapi/shared_impl/ppapi_globals.h')
-rw-r--r--ppapi/shared_impl/ppapi_globals.h14
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_;