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, 10 insertions, 4 deletions
diff --git a/ppapi/shared_impl/ppapi_globals.h b/ppapi/shared_impl/ppapi_globals.h
index b1c3879..8e2b94a 100644
--- a/ppapi/shared_impl/ppapi_globals.h
+++ b/ppapi/shared_impl/ppapi_globals.h
@@ -22,10 +22,14 @@ class Lock;
namespace ppapi {
class CallbackTracker;
-class FunctionGroupBase;
class ResourceTracker;
class VarTracker;
+namespace thunk {
+class PPB_Instance_API;
+class ResourceCreationAPI;
+}
+
// Abstract base class
class PPAPI_SHARED_EXPORT PpapiGlobals {
public:
@@ -87,9 +91,11 @@ class PPAPI_SHARED_EXPORT PpapiGlobals {
const std::string& source,
const std::string& value) = 0;
- // Returns the function object corresponding to the given ID, or NULL if
- // there isn't one.
- virtual FunctionGroupBase* GetFunctionAPI(PP_Instance inst, ApiID id) = 0;
+ // Returns the given API object associated with the given instance, or NULL
+ // if the instance is invalid.
+ virtual thunk::PPB_Instance_API* GetInstanceAPI(PP_Instance instance) = 0;
+ virtual thunk::ResourceCreationAPI* GetResourceCreationAPI(
+ PP_Instance instance) = 0;
// Returns the PP_Module associated with the given PP_Instance, or 0 on
// failure.