OLD | NEW |
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" |
(...skipping 21 matching lines...) Expand all Loading... |
32 | 32 |
33 IPC_STRUCT_TRAITS_BEGIN(content::Manifest) | 33 IPC_STRUCT_TRAITS_BEGIN(content::Manifest) |
34 IPC_STRUCT_TRAITS_MEMBER(name) | 34 IPC_STRUCT_TRAITS_MEMBER(name) |
35 IPC_STRUCT_TRAITS_MEMBER(short_name) | 35 IPC_STRUCT_TRAITS_MEMBER(short_name) |
36 IPC_STRUCT_TRAITS_MEMBER(start_url) | 36 IPC_STRUCT_TRAITS_MEMBER(start_url) |
37 IPC_STRUCT_TRAITS_MEMBER(display) | 37 IPC_STRUCT_TRAITS_MEMBER(display) |
38 IPC_STRUCT_TRAITS_MEMBER(orientation) | 38 IPC_STRUCT_TRAITS_MEMBER(orientation) |
39 IPC_STRUCT_TRAITS_MEMBER(icons) | 39 IPC_STRUCT_TRAITS_MEMBER(icons) |
40 IPC_STRUCT_TRAITS_MEMBER(related_applications) | 40 IPC_STRUCT_TRAITS_MEMBER(related_applications) |
41 IPC_STRUCT_TRAITS_MEMBER(prefer_related_applications) | 41 IPC_STRUCT_TRAITS_MEMBER(prefer_related_applications) |
| 42 IPC_STRUCT_TRAITS_MEMBER(theme_color) |
42 IPC_STRUCT_TRAITS_MEMBER(gcm_sender_id) | 43 IPC_STRUCT_TRAITS_MEMBER(gcm_sender_id) |
43 IPC_STRUCT_TRAITS_END() | 44 IPC_STRUCT_TRAITS_END() |
44 | 45 |
45 // The browser process requests for the manifest linked with the associated | 46 // The browser process requests for the manifest linked with the associated |
46 // render frame. The renderer process will respond via a RequestManifestResponse | 47 // render frame. The renderer process will respond via a RequestManifestResponse |
47 // IPC message with a Manifest object attached to it and the associated | 48 // IPC message with a Manifest object attached to it and the associated |
48 // |request_id| that was initially given. | 49 // |request_id| that was initially given. |
49 IPC_MESSAGE_ROUTED1(ManifestManagerMsg_RequestManifest, | 50 IPC_MESSAGE_ROUTED1(ManifestManagerMsg_RequestManifest, |
50 int /* request_id */) | 51 int /* request_id */) |
51 | 52 |
52 // The renderer process' response to a RequestManifest. The |request_id| will | 53 // The renderer process' response to a RequestManifest. The |request_id| will |
53 // match the one that was initially received. The |manifest| object will be an | 54 // match the one that was initially received. The |manifest| object will be an |
54 // empty manifest in case of any failure. | 55 // empty manifest in case of any failure. |
55 IPC_MESSAGE_ROUTED2(ManifestManagerHostMsg_RequestManifestResponse, | 56 IPC_MESSAGE_ROUTED2(ManifestManagerHostMsg_RequestManifestResponse, |
56 int, /* request_id */ | 57 int, /* request_id */ |
57 content::Manifest /* manifest */) | 58 content::Manifest /* manifest */) |
OLD | NEW |