Chromium Code Reviews| 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 #include "native_client/src/trusted/service_runtime/nacl_error_code.h" | |
| 13 | 14 |
| 14 #define IPC_MESSAGE_START NaClMsgStart | 15 #define IPC_MESSAGE_START NaClMsgStart |
| 15 | 16 |
| 17 IPC_ENUM_TRAITS(NaClErrorCode) | |
| 18 | |
| 16 IPC_STRUCT_TRAITS_BEGIN(nacl::NaClStartParams) | 19 IPC_STRUCT_TRAITS_BEGIN(nacl::NaClStartParams) |
| 17 IPC_STRUCT_TRAITS_MEMBER(handles) | 20 IPC_STRUCT_TRAITS_MEMBER(handles) |
| 18 IPC_STRUCT_TRAITS_MEMBER(debug_stub_server_bound_socket) | 21 IPC_STRUCT_TRAITS_MEMBER(debug_stub_server_bound_socket) |
| 19 IPC_STRUCT_TRAITS_MEMBER(validation_cache_enabled) | 22 IPC_STRUCT_TRAITS_MEMBER(validation_cache_enabled) |
| 20 IPC_STRUCT_TRAITS_MEMBER(validation_cache_key) | 23 IPC_STRUCT_TRAITS_MEMBER(validation_cache_key) |
| 21 IPC_STRUCT_TRAITS_MEMBER(version) | 24 IPC_STRUCT_TRAITS_MEMBER(version) |
| 22 IPC_STRUCT_TRAITS_MEMBER(enable_exception_handling) | 25 IPC_STRUCT_TRAITS_MEMBER(enable_exception_handling) |
| 23 IPC_STRUCT_TRAITS_MEMBER(enable_debug_stub) | 26 IPC_STRUCT_TRAITS_MEMBER(enable_debug_stub) |
| 24 IPC_STRUCT_TRAITS_MEMBER(enable_ipc_proxy) | 27 IPC_STRUCT_TRAITS_MEMBER(enable_ipc_proxy) |
| 25 IPC_STRUCT_TRAITS_MEMBER(uses_irt) | 28 IPC_STRUCT_TRAITS_MEMBER(uses_irt) |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 86 IPC_SYNC_MESSAGE_CONTROL2_2(NaClProcessMsg_ResolveFileToken, | 89 IPC_SYNC_MESSAGE_CONTROL2_2(NaClProcessMsg_ResolveFileToken, |
| 87 uint64, /* file_token_lo */ | 90 uint64, /* file_token_lo */ |
| 88 uint64, /* file_token_hi */ | 91 uint64, /* file_token_hi */ |
| 89 IPC::PlatformFileForTransit, /* fd */ | 92 IPC::PlatformFileForTransit, /* fd */ |
| 90 base::FilePath /* Path opened to get fd */) | 93 base::FilePath /* Path opened to get fd */) |
| 91 | 94 |
| 92 // Notify the browser process that the server side of the PPAPI channel was | 95 // Notify the browser process that the server side of the PPAPI channel was |
| 93 // created successfully. | 96 // created successfully. |
| 94 IPC_MESSAGE_CONTROL1(NaClProcessHostMsg_PpapiChannelCreated, | 97 IPC_MESSAGE_CONTROL1(NaClProcessHostMsg_PpapiChannelCreated, |
| 95 IPC::ChannelHandle /* channel_handle */) | 98 IPC::ChannelHandle /* channel_handle */) |
| 99 | |
| 100 // Created a channel between the renderer and the trusted plugin. | |
| 101 IPC_MESSAGE_CONTROL1(NaClProcessHostMsg_TrustedPluginChannelCreated, | |
| 102 IPC::ChannelHandle /* channel_handle */) | |
| 103 | |
| 104 IPC_SYNC_MESSAGE_CONTROL1_1(NaClProcessMsg_LoadModule, | |
| 105 IPC::PlatformFileForTransit /* fd */, | |
|
dmichael (off chromium)
2014/02/06 18:24:22
It would be good to have a name or comment explain
| |
| 106 NaClErrorCode /* output_code */) | |
| 107 | |
| 108 IPC_SYNC_MESSAGE_CONTROL0_0(NaClProcessMsg_StartModule) | |
| OLD | NEW |