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

Unified Diff: chrome/renderer/pepper/ppb_nacl_private_impl.cc

Issue 11722017: Use an explicit PID for duplicating Pepper handles rather than the Channel's. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 12 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 | « chrome/common/render_messages.h ('k') | content/browser/pepper_flash_settings_helper_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/pepper/ppb_nacl_private_impl.cc
diff --git a/chrome/renderer/pepper/ppb_nacl_private_impl.cc b/chrome/renderer/pepper/ppb_nacl_private_impl.cc
index bb5abf6ee04332a94a9826a714f9ac6cfff66165..ab0801adfcdca24a1517e5e92237acf2a2f6cef4 100644
--- a/chrome/renderer/pepper/ppb_nacl_private_impl.cc
+++ b/chrome/renderer/pepper/ppb_nacl_private_impl.cc
@@ -42,9 +42,10 @@ base::LazyInstance<scoped_refptr<IPC::SyncMessageFilter> >
g_background_thread_sender = LAZY_INSTANCE_INITIALIZER;
struct InstanceInfo {
- InstanceInfo() : plugin_child_id(0) {}
+ InstanceInfo() : plugin_pid(base::kNullProcessId), plugin_child_id(0) {}
GURL url;
ppapi::PpapiPermissions permissions;
+ base::ProcessId plugin_pid;
int plugin_child_id;
IPC::ChannelHandle channel_handle;
};
@@ -105,6 +106,7 @@ PP_NaClResult LaunchSelLdr(PP_Instance instance,
perm_bits,
socket_count, &sockets,
&instance_info.channel_handle,
+ &instance_info.plugin_pid,
&instance_info.plugin_child_id))) {
return PP_NACL_FAILED;
}
@@ -159,6 +161,7 @@ PP_NaClResult StartPpapiProxy(PP_Instance instance) {
FilePath().AppendASCII(instance_info.url.spec()),
instance_info.permissions,
instance_info.channel_handle,
+ instance_info.plugin_pid,
instance_info.plugin_child_id);
if (!renderer_ppapi_host)
return PP_NACL_ERROR_MODULE;
« no previous file with comments | « chrome/common/render_messages.h ('k') | content/browser/pepper_flash_settings_helper_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698