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 #include "ipc/ipc_message_macros.h" | 5 #include "ipc/ipc_message_macros.h" |
6 | 6 |
7 #define IPC_MESSAGE_START FirefoxImporterUnittestMsgStart | 7 #define IPC_MESSAGE_START FirefoxImporterUnittestMsgStart |
8 | 8 |
9 // Messages definitions for messages sent between the unit test binary and | 9 // Messages definitions for messages sent between the unit test binary and |
10 // a child process by FFUnitTestDecryptorProxy. | 10 // a child process by FFUnitTestDecryptorProxy. |
11 | 11 |
12 // Server->Child: Initialize the decrytor with the following paramters. | 12 // Server->Child: Initialize the decrytor with the following paramters. |
13 IPC_MESSAGE_CONTROL2(Msg_Decryptor_Init, | 13 IPC_MESSAGE_CONTROL2(Msg_Decryptor_Init, |
14 base::FilePath /* dll_path */, | 14 base::FilePath /* dll_path */, |
15 base::FilePath /* db_path */) | 15 base::FilePath /* db_path */) |
16 // Child->Server: Return paramter from init call. | 16 // Child->Server: Return paramter from init call. |
17 IPC_MESSAGE_CONTROL1(Msg_Decryptor_InitReturnCode, | 17 IPC_MESSAGE_CONTROL1(Msg_Decryptor_InitReturnCode, |
18 bool /* ret */) | 18 bool /* ret */) |
19 | 19 |
20 // Server->Child: Decrypt a given string. | 20 // Server->Child: Decrypt a given string. |
21 IPC_MESSAGE_CONTROL1(Msg_Decrypt, | 21 IPC_MESSAGE_CONTROL1(Msg_Decrypt, |
22 std::string /* crypt */) | 22 std::string /* crypt */) |
23 // Child->Server: Decrypted String. | 23 // Child->Server: Decrypted String. |
24 IPC_MESSAGE_CONTROL1(Msg_Decryptor_Response, | 24 IPC_MESSAGE_CONTROL1(Msg_Decryptor_Response, |
25 string16 /* unencrypted_str */) | 25 string16 /* unencrypted_str */) |
26 | 26 |
27 // Server->Child: Die. | 27 // Server->Child: Die. |
28 IPC_MESSAGE_CONTROL0(Msg_Decryptor_Quit) | 28 IPC_MESSAGE_CONTROL0(Msg_Decryptor_Quit) |
OLD | NEW |