| OLD | NEW |
| (Empty) |
| 1 // Copyright 2014 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 // Multiply-included message file, so no include guard. | |
| 6 | |
| 7 #include <string> | |
| 8 | |
| 9 #include "extensions/common/update_manifest.h" | |
| 10 #include "ipc/ipc_message_macros.h" | |
| 11 #include "url/ipc/url_param_traits.h" | |
| 12 | |
| 13 #define IPC_MESSAGE_START ExtensionUtilityMsgStart | |
| 14 | |
| 15 IPC_STRUCT_TRAITS_BEGIN(UpdateManifest::Result) | |
| 16 IPC_STRUCT_TRAITS_MEMBER(extension_id) | |
| 17 IPC_STRUCT_TRAITS_MEMBER(version) | |
| 18 IPC_STRUCT_TRAITS_MEMBER(browser_min_version) | |
| 19 IPC_STRUCT_TRAITS_MEMBER(package_hash) | |
| 20 IPC_STRUCT_TRAITS_MEMBER(crx_url) | |
| 21 IPC_STRUCT_TRAITS_END() | |
| 22 | |
| 23 IPC_STRUCT_TRAITS_BEGIN(UpdateManifest::Results) | |
| 24 IPC_STRUCT_TRAITS_MEMBER(list) | |
| 25 IPC_STRUCT_TRAITS_MEMBER(daystart_elapsed_seconds) | |
| 26 IPC_STRUCT_TRAITS_END() | |
| 27 | |
| 28 //------------------------------------------------------------------------------ | |
| 29 // Utility process messages: | |
| 30 // These are messages from the browser to the utility process. | |
| 31 | |
| 32 // Tell the utility process to parse the given xml document. | |
| 33 IPC_MESSAGE_CONTROL1(ExtensionUtilityMsg_ParseUpdateManifest, | |
| 34 std::string /* xml document contents */) | |
| 35 | |
| 36 //------------------------------------------------------------------------------ | |
| 37 // Utility process host messages: | |
| 38 // These are messages from the utility process to the browser. | |
| 39 | |
| 40 // Reply when the utility process has succeeded in parsing an update manifest | |
| 41 // xml document. | |
| 42 IPC_MESSAGE_CONTROL1(ExtensionUtilityHostMsg_ParseUpdateManifest_Succeeded, | |
| 43 UpdateManifest::Results /* updates */) | |
| 44 | |
| 45 // Reply when an error occurred parsing the update manifest. |error_message| | |
| 46 // is a description of what went wrong suitable for logging. | |
| 47 IPC_MESSAGE_CONTROL1(ExtensionUtilityHostMsg_ParseUpdateManifest_Failed, | |
| 48 std::string /* error_message, if any */) | |
| OLD | NEW |