OLD | NEW |
(Empty) | |
| 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 // This header is meant to be included in multiple passes, hence no traditional |
| 6 // header guard. It is included by utility_messages_internal.h |
| 7 // See ipc_message_macros.h for explanation of the macros and passes. |
| 8 |
| 9 // This file needs to be included again, even though we're actually included |
| 10 // from it via utility_messages.h. |
| 11 #include "ipc/ipc_message_macros.h" |
| 12 |
| 13 //------------------------------------------------------------------------------ |
| 14 // Utility process messages: |
| 15 // These are messages from the browser to the utility process. |
| 16 IPC_BEGIN_MESSAGES(Utility) |
| 17 |
| 18 // Tell the utility process to unpack the given extension file in its |
| 19 // directory and verify that it is valid. |
| 20 IPC_MESSAGE_CONTROL1(UtilityMsg_UnpackExtension, |
| 21 FilePath /* extension_filename */) |
| 22 |
| 23 // Tell the utility process to parse the given JSON data and verify its |
| 24 // validity. |
| 25 IPC_MESSAGE_CONTROL1(UtilityMsg_UnpackWebResource, |
| 26 std::string /* JSON data */) |
| 27 |
| 28 // Tell the utility process to parse the given xml document. |
| 29 IPC_MESSAGE_CONTROL1(UtilityMsg_ParseUpdateManifest, |
| 30 std::string /* xml document contents */) |
| 31 |
| 32 IPC_END_MESSAGES(Utility) |
| 33 |
| 34 //------------------------------------------------------------------------------ |
| 35 // Utility process host messages: |
| 36 // These are messages from the utility process to the browser. |
| 37 IPC_BEGIN_MESSAGES(UtilityHost) |
| 38 |
| 39 // Reply when the utility process is done unpacking an extension. |manifest| |
| 40 // is the parsed manifest.json file. |catalogs| is the list of all parsed |
| 41 // message catalogs and relative paths to them. |
| 42 // The unpacker should also have written out a file containing decoded images |
| 43 // from the extension. See ExtensionUnpacker for details. |
| 44 IPC_MESSAGE_CONTROL2(UtilityHostMsg_UnpackExtension_Succeeded, |
| 45 DictionaryValue /* manifest */, |
| 46 DictionaryValue /* catalogs */) |
| 47 |
| 48 // Reply when the utility process has failed while unpacking an extension. |
| 49 // |error_message| is a user-displayable explanation of what went wrong. |
| 50 IPC_MESSAGE_CONTROL1(UtilityHostMsg_UnpackExtension_Failed, |
| 51 std::string /* error_message, if any */) |
| 52 |
| 53 // Reply when the utility process is done unpacking and parsing JSON data |
| 54 // from a web resource. |
| 55 IPC_MESSAGE_CONTROL1(UtilityHostMsg_UnpackWebResource_Succeeded, |
| 56 DictionaryValue /* json data */) |
| 57 |
| 58 // Reply when the utility process has failed while unpacking and parsing a |
| 59 // web resource. |error_message| is a user-readable explanation of what |
| 60 // went wrong. |
| 61 IPC_MESSAGE_CONTROL1(UtilityHostMsg_UnpackWebResource_Failed, |
| 62 std::string /* error_message, if any */) |
| 63 |
| 64 // Reply when the utility process has succeeded in parsing an update manifest |
| 65 // xml document. |
| 66 IPC_MESSAGE_CONTROL1(UtilityHostMsg_ParseUpdateManifest_Succeeded, |
| 67 std::vector<UpdateManifest::Result> /* updates */) |
| 68 |
| 69 // Reply when an error occured parsing the update manifest. |error_message| |
| 70 // is a description of what went wrong suitable for logging. |
| 71 IPC_MESSAGE_CONTROL1(UtilityHostMsg_ParseUpdateManifest_Failed, |
| 72 std::string /* error_message, if any */) |
| 73 |
| 74 IPC_END_MESSAGES(UtilityHost) |
OLD | NEW |