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

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
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..f913795472bbc2f7c9555d467c8a7e91b623d844 100644
--- a/components/nacl/common/nacl_types.h
+++ b/components/nacl/common/nacl_types.h
@@ -81,6 +81,17 @@ 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.
+ 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

Powered by Google App Engine
This is Rietveld 408576698