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_message_macros.h" | 11 #include "ipc/ipc_message_macros.h" |
11 | 12 |
12 #define IPC_MESSAGE_START NaClMsgStart | 13 #define IPC_MESSAGE_START NaClMsgStart |
13 | 14 |
14 IPC_STRUCT_TRAITS_BEGIN(nacl::NaClStartParams) | 15 IPC_STRUCT_TRAITS_BEGIN(nacl::NaClStartParams) |
15 IPC_STRUCT_TRAITS_MEMBER(handles) | 16 IPC_STRUCT_TRAITS_MEMBER(handles) |
16 IPC_STRUCT_TRAITS_MEMBER(validation_cache_enabled) | 17 IPC_STRUCT_TRAITS_MEMBER(validation_cache_enabled) |
17 IPC_STRUCT_TRAITS_MEMBER(validation_cache_key) | 18 IPC_STRUCT_TRAITS_MEMBER(validation_cache_key) |
18 IPC_STRUCT_TRAITS_MEMBER(version) | 19 IPC_STRUCT_TRAITS_MEMBER(version) |
19 IPC_STRUCT_TRAITS_MEMBER(enable_exception_handling) | 20 IPC_STRUCT_TRAITS_MEMBER(enable_exception_handling) |
20 IPC_STRUCT_TRAITS_MEMBER(enable_debug_stub) | 21 IPC_STRUCT_TRAITS_MEMBER(enable_debug_stub) |
| 22 IPC_STRUCT_TRAITS_MEMBER(enable_ipc_proxy) |
21 IPC_STRUCT_TRAITS_END() | 23 IPC_STRUCT_TRAITS_END() |
22 | 24 |
23 //----------------------------------------------------------------------------- | 25 //----------------------------------------------------------------------------- |
24 // NaClProcess messages | 26 // NaClProcess messages |
25 // These are messages sent between the browser and the NaCl process. | 27 // These are messages sent between the browser and the NaCl process. |
26 // Tells the NaCl process to start. | 28 // Tells the NaCl process to start. |
27 IPC_MESSAGE_CONTROL1(NaClProcessMsg_Start, | 29 IPC_MESSAGE_CONTROL1(NaClProcessMsg_Start, |
28 nacl::NaClStartParams /* params */) | 30 nacl::NaClStartParams /* params */) |
29 | 31 |
30 #if defined(OS_WIN) | 32 #if defined(OS_WIN) |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 // Used by the NaCl process to query a database in the browser. The database | 67 // Used by the NaCl process to query a database in the browser. The database |
66 // contains the signatures of previously validated code chunks. | 68 // contains the signatures of previously validated code chunks. |
67 IPC_SYNC_MESSAGE_CONTROL1_1(NaClProcessMsg_QueryKnownToValidate, | 69 IPC_SYNC_MESSAGE_CONTROL1_1(NaClProcessMsg_QueryKnownToValidate, |
68 std::string, /* A validation signature */ | 70 std::string, /* A validation signature */ |
69 bool /* Can validation be skipped? */) | 71 bool /* Can validation be skipped? */) |
70 | 72 |
71 // Used by the NaCl process to add a validation signature to the validation | 73 // Used by the NaCl process to add a validation signature to the validation |
72 // database in the browser. | 74 // database in the browser. |
73 IPC_MESSAGE_CONTROL1(NaClProcessMsg_SetKnownToValidate, | 75 IPC_MESSAGE_CONTROL1(NaClProcessMsg_SetKnownToValidate, |
74 std::string /* A validation signature */) | 76 std::string /* A validation signature */) |
| 77 |
| 78 // Notify the browser process that the server side of the PPAPI channel was |
| 79 // created successfully. |
| 80 IPC_MESSAGE_CONTROL1(NaClProcessHostMsg_PpapiChannelCreated, |
| 81 IPC::ChannelHandle /* channel_handle */) |
| 82 |
OLD | NEW |