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

Unified Diff: components/nacl/common/nacl_types.h

Issue 1051243002: Non-SFI: move socketpair() from plugin process to browser process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 | « components/nacl/common/nacl_messages.h ('k') | components/nacl/loader/nonsfi/nonsfi_listener.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/nacl/common/nacl_types.h
diff --git a/components/nacl/common/nacl_types.h b/components/nacl/common/nacl_types.h
index a3b9eec4e7ea82e60bb27a1df0b408f01674723e..32d4c0cccc4b4d1a36562337fcaf8fcc2beb1cf8 100644
--- a/components/nacl/common/nacl_types.h
+++ b/components/nacl/common/nacl_types.h
@@ -81,6 +81,18 @@ struct NaClStartParams {
IPC::PlatformFileForTransit debug_stub_server_bound_socket;
#endif
+#if defined(OS_LINUX) || defined(OS_NACL_NONSFI)
+ // These are for Non-SFI mode IPC channels.
+ // For security hardening, unlike in SFI mode, we cannot create socket pairs
+ // in a NaCl loader process. Thus, the browser process creates the
+ // ChannelHandle instances, and passes them to the NaCl loader process.
+ // SFI mode uses NaClProcessHostMsg_PpapiChannelsCreated instead.
+ IPC::ChannelHandle ppapi_browser_channel_handle;
+ IPC::ChannelHandle ppapi_renderer_channel_handle;
+ IPC::ChannelHandle trusted_service_channel_handle;
+ IPC::ChannelHandle manifest_service_channel_handle;
+#endif
+
bool validation_cache_enabled;
std::string validation_cache_key;
// Chrome version string. Sending the version string over IPC avoids linkage
« no previous file with comments | « components/nacl/common/nacl_messages.h ('k') | components/nacl/loader/nonsfi/nonsfi_listener.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698