| 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_message_macros.h" | 10 #include "ipc/ipc_message_macros.h" |
| 11 | 11 |
| 12 #define IPC_MESSAGE_START NaClMsgStart | 12 #define IPC_MESSAGE_START NaClMsgStart |
| 13 | 13 |
| 14 IPC_STRUCT_TRAITS_BEGIN(nacl::NaClStartParams) | 14 IPC_STRUCT_TRAITS_BEGIN(nacl::NaClStartParams) |
| 15 IPC_STRUCT_TRAITS_MEMBER(handles) | 15 IPC_STRUCT_TRAITS_MEMBER(handles) |
| 16 IPC_STRUCT_TRAITS_MEMBER(channel_name) |
| 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() |
| 20 | 21 |
| 21 //----------------------------------------------------------------------------- | 22 //----------------------------------------------------------------------------- |
| 22 // NaClProcess messages | 23 // NaClProcess messages |
| 23 // These are messages sent between the browser and the NaCl process. | 24 // These are messages sent between the browser and the NaCl process. |
| 24 // Tells the NaCl process to start. | 25 // Tells the NaCl process to start. |
| 25 IPC_MESSAGE_CONTROL1(NaClProcessMsg_Start, | 26 IPC_MESSAGE_CONTROL1(NaClProcessMsg_Start, |
| (...skipping 26 matching lines...) Expand all Loading... |
| 52 // Used by the NaCl process to query a database in the browser. The database | 53 // Used by the NaCl process to query a database in the browser. The database |
| 53 // contains the signatures of previously validated code chunks. | 54 // contains the signatures of previously validated code chunks. |
| 54 IPC_SYNC_MESSAGE_CONTROL1_1(NaClProcessMsg_QueryKnownToValidate, | 55 IPC_SYNC_MESSAGE_CONTROL1_1(NaClProcessMsg_QueryKnownToValidate, |
| 55 std::string, /* A validation signature */ | 56 std::string, /* A validation signature */ |
| 56 bool /* Can validation be skipped? */) | 57 bool /* Can validation be skipped? */) |
| 57 | 58 |
| 58 // Used by the NaCl process to add a validation signature to the validation | 59 // Used by the NaCl process to add a validation signature to the validation |
| 59 // database in the browser. | 60 // database in the browser. |
| 60 IPC_MESSAGE_CONTROL1(NaClProcessMsg_SetKnownToValidate, | 61 IPC_MESSAGE_CONTROL1(NaClProcessMsg_SetKnownToValidate, |
| 61 std::string /* A validation signature */) | 62 std::string /* A validation signature */) |
| OLD | NEW |