OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Defines messages between the browser and NaCl process. | 5 // Defines messages between the browser and NaCl process. |
6 | 6 |
7 // Multiply-included message file, no traditional include guard. | 7 // Multiply-included message file, no traditional include guard. |
8 #include "base/process.h" | 8 #include "base/process.h" |
9 #include "chrome/common/nacl_types.h" | 9 #include "chrome/common/nacl_types.h" |
10 #include "ipc/ipc_channel_handle.h" | 10 #include "ipc/ipc_channel_handle.h" |
11 #include "ipc/ipc_message_macros.h" | 11 #include "ipc/ipc_message_macros.h" |
12 | 12 |
13 #define IPC_MESSAGE_START NaClMsgStart | 13 #define IPC_MESSAGE_START NaClMsgStart |
14 | 14 |
15 IPC_STRUCT_TRAITS_BEGIN(nacl::NaClStartParams) | 15 IPC_STRUCT_TRAITS_BEGIN(nacl::NaClStartParams) |
16 IPC_STRUCT_TRAITS_MEMBER(handles) | 16 IPC_STRUCT_TRAITS_MEMBER(handles) |
17 IPC_STRUCT_TRAITS_MEMBER(debug_stub_server_bound_socket) | 17 IPC_STRUCT_TRAITS_MEMBER(debug_stub_server_bound_socket) |
18 IPC_STRUCT_TRAITS_MEMBER(validation_cache_enabled) | 18 IPC_STRUCT_TRAITS_MEMBER(validation_cache_enabled) |
19 IPC_STRUCT_TRAITS_MEMBER(validation_cache_key) | 19 IPC_STRUCT_TRAITS_MEMBER(validation_cache_key) |
20 IPC_STRUCT_TRAITS_MEMBER(version) | 20 IPC_STRUCT_TRAITS_MEMBER(version) |
21 IPC_STRUCT_TRAITS_MEMBER(enable_exception_handling) | 21 IPC_STRUCT_TRAITS_MEMBER(enable_exception_handling) |
22 IPC_STRUCT_TRAITS_MEMBER(enable_debug_stub) | 22 IPC_STRUCT_TRAITS_MEMBER(enable_debug_stub) |
23 IPC_STRUCT_TRAITS_MEMBER(enable_ipc_proxy) | 23 IPC_STRUCT_TRAITS_MEMBER(enable_ipc_proxy) |
| 24 IPC_STRUCT_TRAITS_MEMBER(uses_irt) |
24 IPC_STRUCT_TRAITS_END() | 25 IPC_STRUCT_TRAITS_END() |
25 | 26 |
26 //----------------------------------------------------------------------------- | 27 //----------------------------------------------------------------------------- |
27 // NaClProcess messages | 28 // NaClProcess messages |
28 // These are messages sent between the browser and the NaCl process. | 29 // These are messages sent between the browser and the NaCl process. |
29 // Tells the NaCl process to start. | 30 // Tells the NaCl process to start. |
30 IPC_MESSAGE_CONTROL1(NaClProcessMsg_Start, | 31 IPC_MESSAGE_CONTROL1(NaClProcessMsg_Start, |
31 nacl::NaClStartParams /* params */) | 32 nacl::NaClStartParams /* params */) |
32 | 33 |
33 #if defined(OS_WIN) | 34 #if defined(OS_WIN) |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 | 74 |
74 // Used by the NaCl process to add a validation signature to the validation | 75 // Used by the NaCl process to add a validation signature to the validation |
75 // database in the browser. | 76 // database in the browser. |
76 IPC_MESSAGE_CONTROL1(NaClProcessMsg_SetKnownToValidate, | 77 IPC_MESSAGE_CONTROL1(NaClProcessMsg_SetKnownToValidate, |
77 std::string /* A validation signature */) | 78 std::string /* A validation signature */) |
78 | 79 |
79 // Notify the browser process that the server side of the PPAPI channel was | 80 // Notify the browser process that the server side of the PPAPI channel was |
80 // created successfully. | 81 // created successfully. |
81 IPC_MESSAGE_CONTROL1(NaClProcessHostMsg_PpapiChannelCreated, | 82 IPC_MESSAGE_CONTROL1(NaClProcessHostMsg_PpapiChannelCreated, |
82 IPC::ChannelHandle /* channel_handle */) | 83 IPC::ChannelHandle /* channel_handle */) |
83 | |
OLD | NEW |