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

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

Issue 919293002: Add related_applications field to manifest parser. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Feedback Created 5 years, 8 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
« no previous file with comments | « content/browser/manifest/manifest_manager_host.cc ('k') | content/public/common/manifest.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // IPC messages for the web manifest manager. 5 // IPC messages for the web manifest manager.
6 // Multiply-included message file, hence no include guard. 6 // Multiply-included message file, hence no include guard.
7 7
8 #include "content/common/content_export.h" 8 #include "content/common/content_export.h"
9 #include "content/public/common/manifest.h" 9 #include "content/public/common/manifest.h"
10 #include "ipc/ipc_message_macros.h" 10 #include "ipc/ipc_message_macros.h"
11 11
12 #undef IPC_MESSAGE_EXPORT 12 #undef IPC_MESSAGE_EXPORT
13 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 13 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
14 14
15 #define IPC_MESSAGE_START ManifestManagerMsgStart 15 #define IPC_MESSAGE_START ManifestManagerMsgStart
16 16
17 IPC_ENUM_TRAITS_MAX_VALUE(content::Manifest::DisplayMode, 17 IPC_ENUM_TRAITS_MAX_VALUE(content::Manifest::DisplayMode,
18 content::Manifest::DISPLAY_MODE_BROWSER) 18 content::Manifest::DISPLAY_MODE_BROWSER)
19 19
20 IPC_STRUCT_TRAITS_BEGIN(content::Manifest::Icon) 20 IPC_STRUCT_TRAITS_BEGIN(content::Manifest::Icon)
21 IPC_STRUCT_TRAITS_MEMBER(src) 21 IPC_STRUCT_TRAITS_MEMBER(src)
22 IPC_STRUCT_TRAITS_MEMBER(type) 22 IPC_STRUCT_TRAITS_MEMBER(type)
23 IPC_STRUCT_TRAITS_MEMBER(density) 23 IPC_STRUCT_TRAITS_MEMBER(density)
24 IPC_STRUCT_TRAITS_MEMBER(sizes) 24 IPC_STRUCT_TRAITS_MEMBER(sizes)
25 IPC_STRUCT_TRAITS_END() 25 IPC_STRUCT_TRAITS_END()
26 26
27 IPC_STRUCT_TRAITS_BEGIN(content::Manifest::RelatedApplication)
28 IPC_STRUCT_TRAITS_MEMBER(platform)
29 IPC_STRUCT_TRAITS_MEMBER(url)
30 IPC_STRUCT_TRAITS_MEMBER(id)
31 IPC_STRUCT_TRAITS_END()
32
27 IPC_STRUCT_TRAITS_BEGIN(content::Manifest) 33 IPC_STRUCT_TRAITS_BEGIN(content::Manifest)
28 IPC_STRUCT_TRAITS_MEMBER(name) 34 IPC_STRUCT_TRAITS_MEMBER(name)
29 IPC_STRUCT_TRAITS_MEMBER(short_name) 35 IPC_STRUCT_TRAITS_MEMBER(short_name)
30 IPC_STRUCT_TRAITS_MEMBER(start_url) 36 IPC_STRUCT_TRAITS_MEMBER(start_url)
31 IPC_STRUCT_TRAITS_MEMBER(display) 37 IPC_STRUCT_TRAITS_MEMBER(display)
32 IPC_STRUCT_TRAITS_MEMBER(orientation) 38 IPC_STRUCT_TRAITS_MEMBER(orientation)
33 IPC_STRUCT_TRAITS_MEMBER(icons) 39 IPC_STRUCT_TRAITS_MEMBER(icons)
40 IPC_STRUCT_TRAITS_MEMBER(related_applications)
41 IPC_STRUCT_TRAITS_MEMBER(prefer_related_applications)
34 IPC_STRUCT_TRAITS_MEMBER(gcm_sender_id) 42 IPC_STRUCT_TRAITS_MEMBER(gcm_sender_id)
35 IPC_STRUCT_TRAITS_END() 43 IPC_STRUCT_TRAITS_END()
36 44
37 // The browser process requests for the manifest linked with the associated 45 // The browser process requests for the manifest linked with the associated
38 // render frame. The renderer process will respond via a RequestManifestResponse 46 // render frame. The renderer process will respond via a RequestManifestResponse
39 // IPC message with a Manifest object attached to it and the associated 47 // IPC message with a Manifest object attached to it and the associated
40 // |request_id| that was initially given. 48 // |request_id| that was initially given.
41 IPC_MESSAGE_ROUTED1(ManifestManagerMsg_RequestManifest, 49 IPC_MESSAGE_ROUTED1(ManifestManagerMsg_RequestManifest,
42 int /* request_id */) 50 int /* request_id */)
43 51
44 // The renderer process' response to a RequestManifest. The |request_id| will 52 // The renderer process' response to a RequestManifest. The |request_id| will
45 // match the one that was initially received. The |manifest| object will be an 53 // match the one that was initially received. The |manifest| object will be an
46 // empty manifest in case of any failure. 54 // empty manifest in case of any failure.
47 IPC_MESSAGE_ROUTED2(ManifestManagerHostMsg_RequestManifestResponse, 55 IPC_MESSAGE_ROUTED2(ManifestManagerHostMsg_RequestManifestResponse,
48 int, /* request_id */ 56 int, /* request_id */
49 content::Manifest /* manifest */) 57 content::Manifest /* manifest */)
OLDNEW
« no previous file with comments | « content/browser/manifest/manifest_manager_host.cc ('k') | content/public/common/manifest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698