OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/process.h" | 8 #include "base/process/process.h" |
9 #include "components/nacl/common/nacl_types.h" | 9 #include "components/nacl/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 #include "ipc/ipc_platform_file.h" | 12 #include "ipc/ipc_platform_file.h" |
13 | 13 |
14 #define IPC_MESSAGE_START NaClMsgStart | 14 #define IPC_MESSAGE_START NaClMsgStart |
15 | 15 |
16 IPC_STRUCT_TRAITS_BEGIN(nacl::NaClStartParams) | 16 IPC_STRUCT_TRAITS_BEGIN(nacl::NaClStartParams) |
17 IPC_STRUCT_TRAITS_MEMBER(nexe_file) | 17 IPC_STRUCT_TRAITS_MEMBER(nexe_file) |
18 IPC_STRUCT_TRAITS_MEMBER(nexe_token_lo) | 18 IPC_STRUCT_TRAITS_MEMBER(nexe_token_lo) |
19 IPC_STRUCT_TRAITS_MEMBER(nexe_token_hi) | 19 IPC_STRUCT_TRAITS_MEMBER(nexe_token_hi) |
20 IPC_STRUCT_TRAITS_MEMBER(handles) | 20 IPC_STRUCT_TRAITS_MEMBER(handles) |
21 IPC_STRUCT_TRAITS_MEMBER(debug_stub_server_bound_socket) | 21 IPC_STRUCT_TRAITS_MEMBER(debug_stub_server_bound_socket) |
22 IPC_STRUCT_TRAITS_MEMBER(validation_cache_enabled) | 22 IPC_STRUCT_TRAITS_MEMBER(validation_cache_enabled) |
23 IPC_STRUCT_TRAITS_MEMBER(validation_cache_key) | 23 IPC_STRUCT_TRAITS_MEMBER(validation_cache_key) |
24 IPC_STRUCT_TRAITS_MEMBER(version) | 24 IPC_STRUCT_TRAITS_MEMBER(version) |
25 IPC_STRUCT_TRAITS_MEMBER(enable_exception_handling) | 25 IPC_STRUCT_TRAITS_MEMBER(enable_exception_handling) |
26 IPC_STRUCT_TRAITS_MEMBER(enable_debug_stub) | 26 IPC_STRUCT_TRAITS_MEMBER(enable_debug_stub) |
27 IPC_STRUCT_TRAITS_MEMBER(enable_ipc_proxy) | 27 IPC_STRUCT_TRAITS_MEMBER(enable_ipc_proxy) |
28 IPC_STRUCT_TRAITS_MEMBER(uses_irt) | 28 IPC_STRUCT_TRAITS_MEMBER(uses_irt) |
29 IPC_STRUCT_TRAITS_MEMBER(enable_dyncode_syscalls) | 29 IPC_STRUCT_TRAITS_MEMBER(enable_dyncode_syscalls) |
| 30 IPC_STRUCT_TRAITS_MEMBER(crash_info_shmem_handle) |
30 IPC_STRUCT_TRAITS_END() | 31 IPC_STRUCT_TRAITS_END() |
31 | 32 |
32 //----------------------------------------------------------------------------- | 33 //----------------------------------------------------------------------------- |
33 // NaClProcess messages | 34 // NaClProcess messages |
34 // These are messages sent between the browser and the NaCl process. | 35 // These are messages sent between the browser and the NaCl process. |
35 // Tells the NaCl process to start. | 36 // Tells the NaCl process to start. |
36 IPC_MESSAGE_CONTROL1(NaClProcessMsg_Start, | 37 IPC_MESSAGE_CONTROL1(NaClProcessMsg_Start, |
37 nacl::NaClStartParams /* params */) | 38 nacl::NaClStartParams /* params */) |
38 | 39 |
39 #if defined(OS_WIN) | 40 #if defined(OS_WIN) |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 IPC::PlatformFileForTransit, /* fd */ | 97 IPC::PlatformFileForTransit, /* fd */ |
97 base::FilePath /* Path opened to get fd */) | 98 base::FilePath /* Path opened to get fd */) |
98 | 99 |
99 // Notify the browser process that the server side of the PPAPI channel was | 100 // Notify the browser process that the server side of the PPAPI channel was |
100 // created successfully. | 101 // created successfully. |
101 IPC_MESSAGE_CONTROL4(NaClProcessHostMsg_PpapiChannelsCreated, | 102 IPC_MESSAGE_CONTROL4(NaClProcessHostMsg_PpapiChannelsCreated, |
102 IPC::ChannelHandle, /* browser_channel_handle */ | 103 IPC::ChannelHandle, /* browser_channel_handle */ |
103 IPC::ChannelHandle, /* ppapi_renderer_channel_handle */ | 104 IPC::ChannelHandle, /* ppapi_renderer_channel_handle */ |
104 IPC::ChannelHandle, /* trusted_renderer_channel_handle */ | 105 IPC::ChannelHandle, /* trusted_renderer_channel_handle */ |
105 IPC::ChannelHandle /* manifest_service_channel_handle */) | 106 IPC::ChannelHandle /* manifest_service_channel_handle */) |
OLD | NEW |