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

Unified Diff: src/shared/ppapi_proxy/plugin_globals.cc

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 | « src/shared/ppapi_proxy/plugin_globals.h ('k') | src/shared/ppapi_proxy/plugin_ppp_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/shared/ppapi_proxy/plugin_globals.cc
===================================================================
--- src/shared/ppapi_proxy/plugin_globals.cc (revision 3312)
+++ src/shared/ppapi_proxy/plugin_globals.cc (working copy)
@@ -12,6 +12,7 @@
NaClSrpcChannel* main_srpc_channel;
NaClSrpcChannel* upcall_srpc_channel;
+PP_Module module_id_for_plugin;
} // namespace;
@@ -31,6 +32,19 @@
upcall_srpc_channel = channel;
}
+void SetModuleIdForSrpcChannel(NaClSrpcChannel* channel, PP_Module module_id) {
+ module_id_for_plugin = module_id;
+}
+
+void UnsetModuleIdForSrpcChannel(NaClSrpcChannel* channel) {
+ // Zero is an invalid module id.
+ module_id_for_plugin = 0;
+}
+
+PP_Module LookupModuleIdForSrpcChannel(NaClSrpcChannel* channel) {
+ return module_id_for_plugin;
+}
+
const PPB_Core* CoreInterface() {
return reinterpret_cast<const PPB_Core*>(PluginCore::GetInterface());
}
« no previous file with comments | « src/shared/ppapi_proxy/plugin_globals.h ('k') | src/shared/ppapi_proxy/plugin_ppp_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698