Index: ppapi/thunk/enter.h |
=================================================================== |
--- ppapi/thunk/enter.h (revision 100758) |
+++ ppapi/thunk/enter.h (working copy) |
@@ -12,6 +12,7 @@ |
#include "ppapi/shared_impl/resource.h" |
#include "ppapi/shared_impl/tracker_base.h" |
#include "ppapi/shared_impl/resource_tracker.h" |
+#include "ppapi/thunk/ppapi_thunk_export.h" |
namespace ppapi { |
namespace thunk { |
@@ -128,6 +129,26 @@ |
} |
}; |
+// Simpler wrapper to enter the resource creation API. This is used for every |
+// class so we have this helper function to save template instantiations and |
+// typing. |
+PPAPI_THUNK_EXPORT class EnterResourceCreation |
+ : public EnterFunctionNoLock<ResourceCreationAPI> { |
+ public: |
+ EnterResourceCreation(PP_Instance instance); |
+ ~EnterResourceCreation(); |
+}; |
+ |
+// Simpler wrapper to enter the instance API from proxy code. This is used for |
+// many interfaces so we have this helper function to save template |
+// instantiations and typing. |
+PPAPI_THUNK_EXPORT class EnterInstance |
+ : public EnterFunctionNoLock<PPB_Instance_FunctionAPI> { |
+ public: |
+ EnterInstance(PP_Instance instance); |
+ ~EnterInstance(); |
+}; |
+ |
} // namespace thunk |
} // namespace ppapi |