OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 // This header is meant to be included in multiple passes, hence no traditional | 5 #include "ipc/ipc_message_macros.h" |
6 // header guard. | |
7 // See ipc_message_macros.h for explanation of the macros and passes. | |
8 | 6 |
9 #include "ipc/ipc_message_macros.h" | 7 #define IPC_MESSAGE_START FirefoxImporterUnittestMsgStart |
10 | 8 |
11 // Messages definitions for messages sent between the unit test binary and | 9 // Messages definitions for messages sent between the unit test binary and |
12 // a child process by FFUnitTestDecryptorProxy. | 10 // a child process by FFUnitTestDecryptorProxy. |
13 IPC_BEGIN_MESSAGES(Test) | |
14 | 11 |
15 // Server->Child: Initialize the decrytor with the following paramters. | 12 // Server->Child: Initialize the decrytor with the following paramters. |
16 IPC_MESSAGE_CONTROL2(Msg_Decryptor_Init, | 13 IPC_MESSAGE_CONTROL2(Msg_Decryptor_Init, |
17 std::wstring /* dll_path */, | 14 std::wstring /* dll_path */, |
18 std::wstring /* db_path */) | 15 std::wstring /* db_path */) |
19 // Child->Server: Return paramter from init call. | 16 // Child->Server: Return paramter from init call. |
20 IPC_MESSAGE_CONTROL1(Msg_Decryptor_InitReturnCode, | 17 IPC_MESSAGE_CONTROL1(Msg_Decryptor_InitReturnCode, |
21 bool /* ret */) | 18 bool /* ret */) |
22 | 19 |
23 // Server->Child: Decrypt a given string. | 20 // Server->Child: Decrypt a given string. |
24 IPC_MESSAGE_CONTROL1(Msg_Decrypt, | 21 IPC_MESSAGE_CONTROL1(Msg_Decrypt, |
25 std::string /* crypt */) | 22 std::string /* crypt */) |
26 // Child->Server: Decrypted String. | 23 // Child->Server: Decrypted String. |
27 IPC_MESSAGE_CONTROL1(Msg_Decryptor_Response, | 24 IPC_MESSAGE_CONTROL1(Msg_Decryptor_Response, |
28 string16 /* unencrypted_str */) | 25 string16 /* unencrypted_str */) |
29 | 26 |
30 // Server->Child: Die. | 27 // Server->Child: Die. |
31 IPC_MESSAGE_CONTROL0(Msg_Decryptor_Quit) | 28 IPC_MESSAGE_CONTROL0(Msg_Decryptor_Quit) |
32 | |
33 IPC_END_MESSAGES(Test) | |
OLD | NEW |