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 // Multiply-included file, no traditional include guard. | 5 // Multiply-included file, no traditional include guard. |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/process/process.h" | 10 #include "base/process/process.h" |
11 #include "build/build_config.h" | 11 #include "build/build_config.h" |
12 #include "components/nacl/common/nacl_types.h" | 12 #include "components/nacl/common/nacl_types.h" |
13 #include "components/nacl/common/nacl_types_param_traits.h" | 13 #include "components/nacl/common/nacl_types_param_traits.h" |
14 #include "components/nacl/common/pnacl_types.h" | 14 #include "components/nacl/common/pnacl_types.h" |
15 #include "content/public/common/common_param_traits.h" | 15 #include "content/public/common/common_param_traits.h" |
16 #include "ipc/ipc_channel_handle.h" | 16 #include "ipc/ipc_channel_handle.h" |
17 #include "ipc/ipc_message_macros.h" | 17 #include "ipc/ipc_message_macros.h" |
18 #include "ipc/ipc_platform_file.h" | 18 #include "ipc/ipc_platform_file.h" |
19 #include "url/gurl.h" | 19 #include "url/gurl.h" |
20 | 20 |
21 #define IPC_MESSAGE_START NaClHostMsgStart | 21 #define IPC_MESSAGE_START NaClHostMsgStart |
22 | 22 |
| 23 IPC_STRUCT_TRAITS_BEGIN(nacl::NaClResourcePrefetchInfo) |
| 24 IPC_STRUCT_TRAITS_MEMBER(manifest_key) |
| 25 IPC_STRUCT_TRAITS_MEMBER(resource_url) |
| 26 IPC_STRUCT_TRAITS_END() |
| 27 |
23 IPC_STRUCT_TRAITS_BEGIN(nacl::NaClLaunchParams) | 28 IPC_STRUCT_TRAITS_BEGIN(nacl::NaClLaunchParams) |
24 IPC_STRUCT_TRAITS_MEMBER(manifest_url) | 29 IPC_STRUCT_TRAITS_MEMBER(manifest_url) |
25 IPC_STRUCT_TRAITS_MEMBER(nexe_file) | 30 IPC_STRUCT_TRAITS_MEMBER(nexe_file) |
26 IPC_STRUCT_TRAITS_MEMBER(nexe_token_lo) | 31 IPC_STRUCT_TRAITS_MEMBER(nexe_token_lo) |
27 IPC_STRUCT_TRAITS_MEMBER(nexe_token_hi) | 32 IPC_STRUCT_TRAITS_MEMBER(nexe_token_hi) |
28 IPC_STRUCT_TRAITS_MEMBER(resource_files_to_prefetch) | 33 IPC_STRUCT_TRAITS_MEMBER(resource_prefetch_info_list) |
29 IPC_STRUCT_TRAITS_MEMBER(render_view_id) | 34 IPC_STRUCT_TRAITS_MEMBER(render_view_id) |
30 IPC_STRUCT_TRAITS_MEMBER(permission_bits) | 35 IPC_STRUCT_TRAITS_MEMBER(permission_bits) |
31 IPC_STRUCT_TRAITS_MEMBER(uses_nonsfi_mode) | 36 IPC_STRUCT_TRAITS_MEMBER(uses_nonsfi_mode) |
32 IPC_STRUCT_TRAITS_MEMBER(process_type) | 37 IPC_STRUCT_TRAITS_MEMBER(process_type) |
33 IPC_STRUCT_TRAITS_END() | 38 IPC_STRUCT_TRAITS_END() |
34 | 39 |
35 IPC_STRUCT_TRAITS_BEGIN(nacl::NaClLaunchResult) | 40 IPC_STRUCT_TRAITS_BEGIN(nacl::NaClLaunchResult) |
36 IPC_STRUCT_TRAITS_MEMBER(imc_channel_handle) | 41 IPC_STRUCT_TRAITS_MEMBER(imc_channel_handle) |
37 IPC_STRUCT_TRAITS_MEMBER(ppapi_ipc_channel_handle) | 42 IPC_STRUCT_TRAITS_MEMBER(ppapi_ipc_channel_handle) |
38 IPC_STRUCT_TRAITS_MEMBER(trusted_ipc_channel_handle) | 43 IPC_STRUCT_TRAITS_MEMBER(trusted_ipc_channel_handle) |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 // processors are online. | 122 // processors are online. |
118 IPC_SYNC_MESSAGE_CONTROL0_1(NaClHostMsg_NaClGetNumProcessors, | 123 IPC_SYNC_MESSAGE_CONTROL0_1(NaClHostMsg_NaClGetNumProcessors, |
119 int /* Number of processors */) | 124 int /* Number of processors */) |
120 | 125 |
121 // A renderer sends this to the browser process to determine if the | 126 // A renderer sends this to the browser process to determine if the |
122 // NaCl application started from the given NMF URL will be debugged. | 127 // NaCl application started from the given NMF URL will be debugged. |
123 // If not (filtered out by commandline flags), it sets should_debug to false. | 128 // If not (filtered out by commandline flags), it sets should_debug to false. |
124 IPC_SYNC_MESSAGE_CONTROL1_1(NaClHostMsg_NaClDebugEnabledForURL, | 129 IPC_SYNC_MESSAGE_CONTROL1_1(NaClHostMsg_NaClDebugEnabledForURL, |
125 GURL /* alleged URL of NMF file */, | 130 GURL /* alleged URL of NMF file */, |
126 bool /* should debug */) | 131 bool /* should debug */) |
OLD | NEW |