| 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) | 11 IPC_BEGIN_MESSAGES(Test) |
| 14 | 12 |
| 15 // Server->Child: Initialize the decrytor with the following paramters. | 13 // Server->Child: Initialize the decrytor with the following paramters. |
| 16 IPC_MESSAGE_CONTROL2(Msg_Decryptor_Init, | 14 IPC_MESSAGE_CONTROL2(Msg_Decryptor_Init, |
| 17 std::wstring /* dll_path */, | 15 std::wstring /* dll_path */, |
| 18 std::wstring /* db_path */) | 16 std::wstring /* db_path */) |
| 19 // Child->Server: Return paramter from init call. | 17 // Child->Server: Return paramter from init call. |
| 20 IPC_MESSAGE_CONTROL1(Msg_Decryptor_InitReturnCode, | 18 IPC_MESSAGE_CONTROL1(Msg_Decryptor_InitReturnCode, |
| 21 bool /* ret */) | 19 bool /* ret */) |
| 22 | 20 |
| 23 // Server->Child: Decrypt a given string. | 21 // Server->Child: Decrypt a given string. |
| 24 IPC_MESSAGE_CONTROL1(Msg_Decrypt, | 22 IPC_MESSAGE_CONTROL1(Msg_Decrypt, |
| 25 std::string /* crypt */) | 23 std::string /* crypt */) |
| 26 // Child->Server: Decrypted String. | 24 // Child->Server: Decrypted String. |
| 27 IPC_MESSAGE_CONTROL1(Msg_Decryptor_Response, | 25 IPC_MESSAGE_CONTROL1(Msg_Decryptor_Response, |
| 28 string16 /* unencrypted_str */) | 26 string16 /* unencrypted_str */) |
| 29 | 27 |
| 30 // Server->Child: Die. | 28 // Server->Child: Die. |
| 31 IPC_MESSAGE_CONTROL0(Msg_Decryptor_Quit) | 29 IPC_MESSAGE_CONTROL0(Msg_Decryptor_Quit) |
| 32 | |
| 33 IPC_END_MESSAGES(Test) | |
| OLD | NEW |