Blink roll 25b6bd3a7a131ffe68d809546ad1a20707915cdc:3a503f41ae42e5b79cfcd2ff10e65afde...
[chromium-blink-merge.git] / extensions / common / extension_utility_messages.h
blob77dfe135a9cc023b35d4fef00e65b10d8161c68d
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.
5 // Multiply-included message file, so no include guard.
7 #include <string>
9 #include "extensions/common/update_manifest.h"
10 #include "ipc/ipc_message_macros.h"
12 #define IPC_MESSAGE_START ExtensionUtilityMsgStart
14 IPC_STRUCT_TRAITS_BEGIN(UpdateManifest::Result)
15 IPC_STRUCT_TRAITS_MEMBER(extension_id)
16 IPC_STRUCT_TRAITS_MEMBER(version)
17 IPC_STRUCT_TRAITS_MEMBER(browser_min_version)
18 IPC_STRUCT_TRAITS_MEMBER(package_hash)
19 IPC_STRUCT_TRAITS_MEMBER(crx_url)
20 IPC_STRUCT_TRAITS_END()
22 IPC_STRUCT_TRAITS_BEGIN(UpdateManifest::Results)
23 IPC_STRUCT_TRAITS_MEMBER(list)
24 IPC_STRUCT_TRAITS_MEMBER(daystart_elapsed_seconds)
25 IPC_STRUCT_TRAITS_END()
27 //------------------------------------------------------------------------------
28 // Utility process messages:
29 // These are messages from the browser to the utility process.
31 // Tell the utility process to parse the given xml document.
32 IPC_MESSAGE_CONTROL1(ExtensionUtilityMsg_ParseUpdateManifest,
33 std::string /* xml document contents */)
35 //------------------------------------------------------------------------------
36 // Utility process host messages:
37 // These are messages from the utility process to the browser.
39 // Reply when the utility process has succeeded in parsing an update manifest
40 // xml document.
41 IPC_MESSAGE_CONTROL1(ExtensionUtilityHostMsg_ParseUpdateManifest_Succeeded,
42 UpdateManifest::Results /* updates */)
44 // Reply when an error occurred parsing the update manifest. |error_message|
45 // is a description of what went wrong suitable for logging.
46 IPC_MESSAGE_CONTROL1(ExtensionUtilityHostMsg_ParseUpdateManifest_Failed,
47 std::string /* error_message, if any */)