Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(239)

Unified Diff: src/shared/ppapi_proxy/browser_globals.h

Issue 3391010: Update the PPAPI DEPS revision. This change included parameter profile chang... (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client/
Patch Set: Created 10 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « DEPS ('k') | src/shared/ppapi_proxy/browser_globals.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « DEPS ('k') | src/shared/ppapi_proxy/browser_globals.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698