| Index: src/shared/ppapi_proxy/browser_globals.h
|
| ===================================================================
|
| --- src/shared/ppapi_proxy/browser_globals.h (revision 3312)
|
| +++ src/shared/ppapi_proxy/browser_globals.h (working copy)
|
| @@ -6,10 +6,13 @@
|
| #define NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_BROWSER_GLOBALS_H_
|
|
|
| #include "ppapi/c/pp_instance.h"
|
| +#include "ppapi/c/pp_module.h"
|
| #include "ppapi/c/ppb.h"
|
| #include "ppapi/c/ppb_core.h"
|
| #include "ppapi/c/ppb_var.h"
|
|
|
| +struct NaClSrpcChannel;
|
| +
|
| namespace ppapi_proxy {
|
|
|
| // These functions handle the browser-side (trusted code) mapping of a browser
|
| @@ -32,6 +35,14 @@
|
| // Gets the BrowserPpp information remembered for a particular instance.
|
| BrowserPpp* LookupBrowserPppForInstance(PP_Instance instance);
|
|
|
| +// To keep track of memory allocated by a particular module, we need to remember
|
| +// the PP_Module corresponding to a particular NaClSrpcChannel*.
|
| +void SetModuleIdForSrpcChannel(NaClSrpcChannel* channel, PP_Module module_id);
|
| +// Removes the association with a given channel.
|
| +void UnsetModuleIdForSrpcChannel(NaClSrpcChannel* channel);
|
| +// Looks up the association with a given channel.
|
| +PP_Module LookupModuleIdForSrpcChannel(NaClSrpcChannel* channel);
|
| +
|
| // We need to keep the browser GetInterface function pointer, as parts of the
|
| // proxy will need to invoke interfaces such as the 2D and 3D APIs.
|
| void SetBrowserGetInterface(PPB_GetInterface get_interface_function);
|
|
|