Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(673)

Side by Side Diff: content/common/manifest_manager_messages.h

Issue 1913043002: Convert ManifestManager IPCs to Mojo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 // IPC messages for the web manifest manager.
6 // Multiply-included message file, hence no include guard.
7
8 #include "content/common/content_export.h"
9 #include "content/public/common/manifest.h"
10 #include "ipc/ipc_message_macros.h"
11
12 #undef IPC_MESSAGE_EXPORT
13 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
14
15 #define IPC_MESSAGE_START ManifestManagerMsgStart
16
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(sizes)
21 IPC_STRUCT_TRAITS_END()
22
23 IPC_STRUCT_TRAITS_BEGIN(content::Manifest::RelatedApplication)
24 IPC_STRUCT_TRAITS_MEMBER(platform)
25 IPC_STRUCT_TRAITS_MEMBER(url)
26 IPC_STRUCT_TRAITS_MEMBER(id)
27 IPC_STRUCT_TRAITS_END()
28
29 IPC_STRUCT_TRAITS_BEGIN(content::Manifest)
30 IPC_STRUCT_TRAITS_MEMBER(name)
31 IPC_STRUCT_TRAITS_MEMBER(short_name)
32 IPC_STRUCT_TRAITS_MEMBER(start_url)
33 IPC_STRUCT_TRAITS_MEMBER(display)
34 IPC_STRUCT_TRAITS_MEMBER(orientation)
35 IPC_STRUCT_TRAITS_MEMBER(icons)
36 IPC_STRUCT_TRAITS_MEMBER(related_applications)
37 IPC_STRUCT_TRAITS_MEMBER(prefer_related_applications)
38 IPC_STRUCT_TRAITS_MEMBER(theme_color)
39 IPC_STRUCT_TRAITS_MEMBER(background_color)
40 IPC_STRUCT_TRAITS_MEMBER(gcm_sender_id)
41 IPC_STRUCT_TRAITS_END()
42
43 // The browser process requests for the manifest linked with the associated
44 // RenderFrame. The render process will respond via a RequestManifestResponse
45 // IPC message with a Manifest object attached to it and the associated
46 // |request_id| that was initially given.
47 IPC_MESSAGE_ROUTED1(ManifestManagerMsg_RequestManifest,
48 int /* request_id */)
49
50 // The browser process requests whether the document loaded in the associated
51 // RenderFrame has a manifest link URL. The render process will respond with
52 // a HasManifestResponse IPC message, along with a bool indicating the presence
53 // of a manifest link, and the |request_id| that was initially given.
54 IPC_MESSAGE_ROUTED1(ManifestManagerMsg_HasManifest,
55 int /* request_id */)
56
57 // The render process' response to a RequestManifest. The |request_id| will
58 // match the one that was initially received. The |manifest| object will be an
59 // empty manifest in case of any failure.
60 IPC_MESSAGE_ROUTED2(ManifestManagerHostMsg_RequestManifestResponse,
61 int, /* request_id */
62 content::Manifest /* manifest */)
63
64 // The render process' response to a HasManifest. The |request_id| is the one
65 // sent from the browser. The |bool| will be true if the current document has a
66 // manifest link URL, and false otherwise.
67 IPC_MESSAGE_ROUTED2(ManifestManagerHostMsg_HasManifestResponse,
68 int, /* request_id */
69 bool /* true if the document has a manifest link */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698