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_key) | 17 IPC_STRUCT_TRAITS_MEMBER(validation_cache_key) |
17 IPC_STRUCT_TRAITS_MEMBER(version) | 18 IPC_STRUCT_TRAITS_MEMBER(version) |
18 IPC_STRUCT_TRAITS_MEMBER(enable_exception_handling) | 19 IPC_STRUCT_TRAITS_MEMBER(enable_exception_handling) |
19 IPC_STRUCT_TRAITS_END() | 20 IPC_STRUCT_TRAITS_END() |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 // Used by the NaCl process to query a database in the browser. The database | 54 // Used by the NaCl process to query a database in the browser. The database |
54 // contains the signatures of previously validated code chunks. | 55 // contains the signatures of previously validated code chunks. |
55 IPC_SYNC_MESSAGE_CONTROL1_1(NaClProcessMsg_QueryKnownToValidate, | 56 IPC_SYNC_MESSAGE_CONTROL1_1(NaClProcessMsg_QueryKnownToValidate, |
56 std::string, /* A validation signature */ | 57 std::string, /* A validation signature */ |
57 bool /* Can validation be skipped? */) | 58 bool /* Can validation be skipped? */) |
58 | 59 |
59 // Used by the NaCl process to add a validation signature to the validation | 60 // Used by the NaCl process to add a validation signature to the validation |
60 // database in the browser. | 61 // database in the browser. |
61 IPC_MESSAGE_CONTROL1(NaClProcessMsg_SetKnownToValidate, | 62 IPC_MESSAGE_CONTROL1(NaClProcessMsg_SetKnownToValidate, |
62 std::string /* A validation signature */) | 63 std::string /* A validation signature */) |
| 64 |
| 65 // Notify the browser process that the server side of the PPAPI channel was |
| 66 // created successfully. |
| 67 IPC_MESSAGE_CONTROL1(NaClProcessHostMsg_PpapiChannelCreated, |
| 68 IPC::ChannelHandle /* channel_handle */) |
OLD | NEW |