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