Delete chrome.mediaGalleriesPrivate because the functionality unique to it has since...
[chromium-blink-merge.git] / extensions / common / extension_utility_messages.h
blob123fc980fe048b91eb15eac5d5e68b831dc39e62
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"
11 #include "third_party/skia/include/core/SkBitmap.h"
12 #include "ui/gfx/ipc/gfx_param_traits.h"
14 #define IPC_MESSAGE_START ExtensionUtilityMsgStart
16 #ifndef EXTENSIONS_COMMON_EXTENSION_UTILITY_MESSAGES_H_
17 #define EXTENSIONS_COMMON_EXTENSION_UTILITY_MESSAGES_H_
19 typedef std::vector<Tuple<SkBitmap, base::FilePath>> DecodedImages;
21 #endif // EXTENSIONS_COMMON_EXTENSION_UTILITY_MESSAGES_H_
23 IPC_STRUCT_TRAITS_BEGIN(UpdateManifest::Result)
24 IPC_STRUCT_TRAITS_MEMBER(extension_id)
25 IPC_STRUCT_TRAITS_MEMBER(version)
26 IPC_STRUCT_TRAITS_MEMBER(browser_min_version)
27 IPC_STRUCT_TRAITS_MEMBER(package_hash)
28 IPC_STRUCT_TRAITS_MEMBER(crx_url)
29 IPC_STRUCT_TRAITS_END()
31 IPC_STRUCT_TRAITS_BEGIN(UpdateManifest::Results)
32 IPC_STRUCT_TRAITS_MEMBER(list)
33 IPC_STRUCT_TRAITS_MEMBER(daystart_elapsed_seconds)
34 IPC_STRUCT_TRAITS_END()
36 //------------------------------------------------------------------------------
37 // Utility process messages:
38 // These are messages from the browser to the utility process.
40 // Tell the utility process to parse the given xml document.
41 IPC_MESSAGE_CONTROL1(ExtensionUtilityMsg_ParseUpdateManifest,
42 std::string /* xml document contents */)
44 //------------------------------------------------------------------------------
45 // Utility process host messages:
46 // These are messages from the utility process to the browser.
48 // Reply when the utility process has succeeded in parsing an update manifest
49 // xml document.
50 IPC_MESSAGE_CONTROL1(ExtensionUtilityHostMsg_ParseUpdateManifest_Succeeded,
51 UpdateManifest::Results /* updates */)
53 // Reply when an error occurred parsing the update manifest. |error_message|
54 // is a description of what went wrong suitable for logging.
55 IPC_MESSAGE_CONTROL1(ExtensionUtilityHostMsg_ParseUpdateManifest_Failed,
56 std::string /* error_message, if any */)