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" |
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) | 20 IPC_STRUCT_TRAITS_BEGIN(content::Manifest) |
21 IPC_STRUCT_TRAITS_MEMBER(name) | 21 IPC_STRUCT_TRAITS_MEMBER(name) |
22 IPC_STRUCT_TRAITS_MEMBER(short_name) | 22 IPC_STRUCT_TRAITS_MEMBER(short_name) |
23 IPC_STRUCT_TRAITS_MEMBER(start_url) | 23 IPC_STRUCT_TRAITS_MEMBER(start_url) |
24 IPC_STRUCT_TRAITS_MEMBER(display) | 24 IPC_STRUCT_TRAITS_MEMBER(display) |
25 IPC_STRUCT_TRAITS_MEMBER(orientation) | |
palmer
2014/09/17 19:18:24
Can you add an IPC_ENUM_TRAITS_MAX_VALUE for orien
mlamouri (slow - plz ping)
2014/09/17 19:20:11
This is already being passed via IPC by the Screen
| |
25 IPC_STRUCT_TRAITS_END() | 26 IPC_STRUCT_TRAITS_END() |
26 | 27 |
27 // The browser process requests for the manifest linked with the associated | 28 // The browser process requests for the manifest linked with the associated |
28 // render frame. The renderer process will respond via a RequestManifestResponse | 29 // render frame. The renderer process will respond via a RequestManifestResponse |
29 // IPC message with a Manifest object attached to it and the associated | 30 // IPC message with a Manifest object attached to it and the associated |
30 // |request_id| that was initially given. | 31 // |request_id| that was initially given. |
31 IPC_MESSAGE_ROUTED1(ManifestManagerMsg_RequestManifest, | 32 IPC_MESSAGE_ROUTED1(ManifestManagerMsg_RequestManifest, |
32 int /* request_id */) | 33 int /* request_id */) |
33 | 34 |
34 // The renderer process' response to a RequestManifest. The |request_id| will | 35 // The renderer process' response to a RequestManifest. The |request_id| will |
35 // match the one that was initially received. The |manifest| object will be an | 36 // match the one that was initially received. The |manifest| object will be an |
36 // empty manifest in case of any failure. | 37 // empty manifest in case of any failure. |
37 IPC_MESSAGE_ROUTED2(ManifestManagerHostMsg_RequestManifestResponse, | 38 IPC_MESSAGE_ROUTED2(ManifestManagerHostMsg_RequestManifestResponse, |
38 int, /* request_id */ | 39 int, /* request_id */ |
39 content::Manifest /* manifest */) | 40 content::Manifest /* manifest */) |
OLD | NEW |