Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / content / common / manifest_manager_messages.h
blob57cab5daa5b8b585f355a87c64a7f276af419005
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 // IPC messages for the web manifest manager.
6 // Multiply-included message file, hence no include guard.
8 #include "content/common/content_export.h"
9 #include "content/public/common/manifest.h"
10 #include "ipc/ipc_message_macros.h"
12 #undef IPC_MESSAGE_EXPORT
13 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
15 #define IPC_MESSAGE_START ManifestManagerMsgStart
17 IPC_STRUCT_TRAITS_BEGIN(content::Manifest::Icon)
18 IPC_STRUCT_TRAITS_MEMBER(src)
19 IPC_STRUCT_TRAITS_MEMBER(type)
20 IPC_STRUCT_TRAITS_MEMBER(density)
21 IPC_STRUCT_TRAITS_MEMBER(sizes)
22 IPC_STRUCT_TRAITS_END()
24 IPC_STRUCT_TRAITS_BEGIN(content::Manifest::RelatedApplication)
25 IPC_STRUCT_TRAITS_MEMBER(platform)
26 IPC_STRUCT_TRAITS_MEMBER(url)
27 IPC_STRUCT_TRAITS_MEMBER(id)
28 IPC_STRUCT_TRAITS_END()
30 IPC_STRUCT_TRAITS_BEGIN(content::Manifest)
31 IPC_STRUCT_TRAITS_MEMBER(name)
32 IPC_STRUCT_TRAITS_MEMBER(short_name)
33 IPC_STRUCT_TRAITS_MEMBER(start_url)
34 IPC_STRUCT_TRAITS_MEMBER(display)
35 IPC_STRUCT_TRAITS_MEMBER(orientation)
36 IPC_STRUCT_TRAITS_MEMBER(icons)
37 IPC_STRUCT_TRAITS_MEMBER(related_applications)
38 IPC_STRUCT_TRAITS_MEMBER(prefer_related_applications)
39 IPC_STRUCT_TRAITS_MEMBER(theme_color)
40 IPC_STRUCT_TRAITS_MEMBER(background_color)
41 IPC_STRUCT_TRAITS_MEMBER(gcm_sender_id)
42 IPC_STRUCT_TRAITS_END()
44 // The browser process requests for the manifest linked with the associated
45 // render frame. The renderer process will respond via a RequestManifestResponse
46 // IPC message with a Manifest object attached to it and the associated
47 // |request_id| that was initially given.
48 IPC_MESSAGE_ROUTED1(ManifestManagerMsg_RequestManifest,
49 int /* request_id */)
51 // The renderer process' response to a RequestManifest. The |request_id| will
52 // match the one that was initially received. The |manifest| object will be an
53 // empty manifest in case of any failure.
54 IPC_MESSAGE_ROUTED2(ManifestManagerHostMsg_RequestManifestResponse,
55 int, /* request_id */
56 content::Manifest /* manifest */)