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

Unified Diff: chrome/common/nacl_messages.h

Issue 10020002: Pass the nacl start parameters as a struct. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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
« no previous file with comments | « chrome/chrome_common.gypi ('k') | chrome/common/nacl_types.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/nacl_messages.h
diff --git a/chrome/common/nacl_messages.h b/chrome/common/nacl_messages.h
index fc44f314314a83c37ae54d3d1ebbc7b958410b5d..67dab31683c4dbc108aca8baf0c3613876d6fc19 100644
--- a/chrome/common/nacl_messages.h
+++ b/chrome/common/nacl_messages.h
@@ -9,22 +9,21 @@
#include "chrome/common/nacl_types.h"
#include "ipc/ipc_message_macros.h"
-#ifndef CHROME_COMMON_NACL_MESSAGES_H_
-#define CHROME_COMMON_NACL_MESSAGES_H_
-
-#endif // CHROME_COMMON_NACL_MESSAGES_H_
-
#define IPC_MESSAGE_START NaClMsgStart
+IPC_STRUCT_TRAITS_BEGIN(nacl::NaClStartParams)
+ IPC_STRUCT_TRAITS_MEMBER(handles)
+ IPC_STRUCT_TRAITS_MEMBER(validation_cache_key)
+ IPC_STRUCT_TRAITS_MEMBER(version)
+ IPC_STRUCT_TRAITS_MEMBER(enable_exception_handling)
+IPC_STRUCT_TRAITS_END()
+
//-----------------------------------------------------------------------------
// NaClProcess messages
// These are messages sent between the browser and the NaCl process.
// Tells the NaCl process to start.
-IPC_MESSAGE_CONTROL4(NaClProcessMsg_Start,
- std::vector<nacl::FileDescriptor> /* sockets */,
- std::string /* validation_cache_key */,
- std::string /* version */,
- bool /* enable_exception_handling */)
+IPC_MESSAGE_CONTROL1(NaClProcessMsg_Start,
+ nacl::NaClStartParams /* params */)
// Tells the NaCl broker to launch a NaCl loader process.
IPC_MESSAGE_CONTROL1(NaClProcessMsg_LaunchLoaderThroughBroker,
« no previous file with comments | « chrome/chrome_common.gypi ('k') | chrome/common/nacl_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698