Index: src/shared/ppapi_proxy/plugin_globals.h |
=================================================================== |
--- src/shared/ppapi_proxy/plugin_globals.h (revision 3312) |
+++ src/shared/ppapi_proxy/plugin_globals.h (working copy) |
@@ -5,6 +5,7 @@ |
#ifndef NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_GLOBALS_H_ |
#define NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_GLOBALS_H_ |
+#include "ppapi/c/pp_module.h" |
#include "ppapi/c/ppb.h" |
#include "ppapi/c/ppb_core.h" |
#include "ppapi/c/ppb_var.h" |
@@ -22,6 +23,13 @@ |
NaClSrpcChannel* GetUpcallSrpcChannel(); |
void SetUpcallSrpcChannel(NaClSrpcChannel* channel); |
+// Save the plugin's module_id, which is used for storage allocation tracking. |
+void SetModuleIdForSrpcChannel(NaClSrpcChannel* channel, PP_Module module_id); |
+// Forget the plugin's module_id. |
+void UnsetModuleIdForSrpcChannel(NaClSrpcChannel* channel); |
+// Save the plugin's module_id. |
+PP_Module LookupModuleIdForSrpcChannel(NaClSrpcChannel* channel); |
+ |
// Get the PPB_Core interface passed in from the browser. |
const PPB_Core* CoreInterface(); |