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

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, 8 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 f691edf9b2f7c6068efb3f686337ada1e994b7b6..084982e3c1a794346dcb29fde61d30439f2dd163 100644
--- a/components/nacl/common/nacl_types.h
+++ b/components/nacl/common/nacl_types.h
@@ -103,6 +103,18 @@ struct NaClStartParams {
// For NaCl <-> renderer crash information reporting.
base::SharedMemoryHandle crash_info_shmem_handle;
+ // In Non-SFI mode, to be more secure we cannot create socket pairs in the
+ // nacl_helper process. Instead, we create them in the browser process,
+ // and pass them to the plugin process.
+ FileDescriptor browser_server_ppapi_fd;
Mark Seaborn 2015/04/15 20:52:05 base::FileDescriptor doesn't have a destructor...
hidehiko 2015/05/12 18:47:51 Ack. On 2015/04/15 20:52:05, Mark Seaborn wrote:
+ FileDescriptor browser_client_ppapi_fd;
+ FileDescriptor renderer_server_ppapi_fd;
+ FileDescriptor renderer_client_ppapi_fd;
+ FileDescriptor manifest_service_server_fd;
+ FileDescriptor manifest_service_client_fd;
+ FileDescriptor trusted_channel_server_fd;
+ FileDescriptor trusted_channel_client_fd;
+
// NOTE: Any new fields added here must also be added to the IPC
// serialization in nacl_messages.h and (for POD fields) the constructor
// in nacl_types.cc.

Powered by Google App Engine
This is Rietveld 408576698