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 "components/nacl/common/nacl_types_param_traits.h" | 10 #include "components/nacl/common/nacl_types_param_traits.h" |
11 #include "ipc/ipc_channel_handle.h" | 11 #include "ipc/ipc_channel_handle.h" |
12 #include "ipc/ipc_message_macros.h" | 12 #include "ipc/ipc_message_macros.h" |
13 #include "ipc/ipc_platform_file.h" | 13 #include "ipc/ipc_platform_file.h" |
14 | 14 |
15 #define IPC_MESSAGE_START NaClMsgStart | 15 #define IPC_MESSAGE_START NaClMsgStart |
16 | 16 |
17 IPC_STRUCT_TRAITS_BEGIN(nacl::NaClStartParams) | 17 IPC_STRUCT_TRAITS_BEGIN(nacl::NaClStartParams) |
18 IPC_STRUCT_TRAITS_MEMBER(nexe_file) | 18 IPC_STRUCT_TRAITS_MEMBER(nexe_file) |
19 IPC_STRUCT_TRAITS_MEMBER(nexe_file_path_metadata) | 19 IPC_STRUCT_TRAITS_MEMBER(nexe_file_path_metadata) |
| 20 IPC_STRUCT_TRAITS_MEMBER(resource_files) |
20 IPC_STRUCT_TRAITS_MEMBER(handles) | 21 IPC_STRUCT_TRAITS_MEMBER(handles) |
21 IPC_STRUCT_TRAITS_MEMBER(debug_stub_server_bound_socket) | 22 IPC_STRUCT_TRAITS_MEMBER(debug_stub_server_bound_socket) |
22 IPC_STRUCT_TRAITS_MEMBER(validation_cache_enabled) | 23 IPC_STRUCT_TRAITS_MEMBER(validation_cache_enabled) |
23 IPC_STRUCT_TRAITS_MEMBER(validation_cache_key) | 24 IPC_STRUCT_TRAITS_MEMBER(validation_cache_key) |
24 IPC_STRUCT_TRAITS_MEMBER(version) | 25 IPC_STRUCT_TRAITS_MEMBER(version) |
25 IPC_STRUCT_TRAITS_MEMBER(enable_debug_stub) | 26 IPC_STRUCT_TRAITS_MEMBER(enable_debug_stub) |
26 IPC_STRUCT_TRAITS_MEMBER(enable_ipc_proxy) | 27 IPC_STRUCT_TRAITS_MEMBER(enable_ipc_proxy) |
27 IPC_STRUCT_TRAITS_MEMBER(process_type) | 28 IPC_STRUCT_TRAITS_MEMBER(process_type) |
28 IPC_STRUCT_TRAITS_MEMBER(crash_info_shmem_handle) | 29 IPC_STRUCT_TRAITS_MEMBER(crash_info_shmem_handle) |
29 IPC_STRUCT_TRAITS_END() | 30 IPC_STRUCT_TRAITS_END() |
30 | 31 |
| 32 IPC_STRUCT_TRAITS_BEGIN(nacl::NaClStartParams::ResourceFileInfo) |
| 33 IPC_STRUCT_TRAITS_MEMBER(file) |
| 34 IPC_STRUCT_TRAITS_MEMBER(file_path) |
| 35 IPC_STRUCT_TRAITS_MEMBER(file_key) |
| 36 IPC_STRUCT_TRAITS_END() |
| 37 |
31 //----------------------------------------------------------------------------- | 38 //----------------------------------------------------------------------------- |
32 // NaClProcess messages | 39 // NaClProcess messages |
33 // These are messages sent between the browser and the NaCl process. | 40 // These are messages sent between the browser and the NaCl process. |
34 // Tells the NaCl process to start. | 41 // Tells the NaCl process to start. |
35 IPC_MESSAGE_CONTROL1(NaClProcessMsg_Start, | 42 IPC_MESSAGE_CONTROL1(NaClProcessMsg_Start, |
36 nacl::NaClStartParams /* params */) | 43 nacl::NaClStartParams /* params */) |
37 | 44 |
38 #if defined(OS_WIN) | 45 #if defined(OS_WIN) |
39 // Tells the NaCl broker to launch a NaCl loader process. | 46 // Tells the NaCl broker to launch a NaCl loader process. |
40 IPC_MESSAGE_CONTROL1(NaClProcessMsg_LaunchLoaderThroughBroker, | 47 IPC_MESSAGE_CONTROL1(NaClProcessMsg_LaunchLoaderThroughBroker, |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 IPC::PlatformFileForTransit, /* fd */ | 105 IPC::PlatformFileForTransit, /* fd */ |
99 base::FilePath /* Path opened to get fd */) | 106 base::FilePath /* Path opened to get fd */) |
100 | 107 |
101 // Notify the browser process that the server side of the PPAPI channel was | 108 // Notify the browser process that the server side of the PPAPI channel was |
102 // created successfully. | 109 // created successfully. |
103 IPC_MESSAGE_CONTROL4(NaClProcessHostMsg_PpapiChannelsCreated, | 110 IPC_MESSAGE_CONTROL4(NaClProcessHostMsg_PpapiChannelsCreated, |
104 IPC::ChannelHandle, /* browser_channel_handle */ | 111 IPC::ChannelHandle, /* browser_channel_handle */ |
105 IPC::ChannelHandle, /* ppapi_renderer_channel_handle */ | 112 IPC::ChannelHandle, /* ppapi_renderer_channel_handle */ |
106 IPC::ChannelHandle, /* trusted_renderer_channel_handle */ | 113 IPC::ChannelHandle, /* trusted_renderer_channel_handle */ |
107 IPC::ChannelHandle /* manifest_service_channel_handle */) | 114 IPC::ChannelHandle /* manifest_service_channel_handle */) |
OLD | NEW |