| 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_STRUCT_TRAITS_BEGIN(content::Manifest::Icon) | 17 IPC_STRUCT_TRAITS_BEGIN(content::Manifest::Icon) |
| 18 IPC_STRUCT_TRAITS_MEMBER(src) | 18 IPC_STRUCT_TRAITS_MEMBER(src) |
| 19 IPC_STRUCT_TRAITS_MEMBER(type) | 19 IPC_STRUCT_TRAITS_MEMBER(type) |
| 20 IPC_STRUCT_TRAITS_MEMBER(density) | |
| 21 IPC_STRUCT_TRAITS_MEMBER(sizes) | 20 IPC_STRUCT_TRAITS_MEMBER(sizes) |
| 22 IPC_STRUCT_TRAITS_END() | 21 IPC_STRUCT_TRAITS_END() |
| 23 | 22 |
| 24 IPC_STRUCT_TRAITS_BEGIN(content::Manifest::RelatedApplication) | 23 IPC_STRUCT_TRAITS_BEGIN(content::Manifest::RelatedApplication) |
| 25 IPC_STRUCT_TRAITS_MEMBER(platform) | 24 IPC_STRUCT_TRAITS_MEMBER(platform) |
| 26 IPC_STRUCT_TRAITS_MEMBER(url) | 25 IPC_STRUCT_TRAITS_MEMBER(url) |
| 27 IPC_STRUCT_TRAITS_MEMBER(id) | 26 IPC_STRUCT_TRAITS_MEMBER(id) |
| 28 IPC_STRUCT_TRAITS_END() | 27 IPC_STRUCT_TRAITS_END() |
| 29 | 28 |
| 30 IPC_STRUCT_TRAITS_BEGIN(content::Manifest) | 29 IPC_STRUCT_TRAITS_BEGIN(content::Manifest) |
| (...skipping 30 matching lines...) Expand all Loading... |
| 61 IPC_MESSAGE_ROUTED2(ManifestManagerHostMsg_RequestManifestResponse, | 60 IPC_MESSAGE_ROUTED2(ManifestManagerHostMsg_RequestManifestResponse, |
| 62 int, /* request_id */ | 61 int, /* request_id */ |
| 63 content::Manifest /* manifest */) | 62 content::Manifest /* manifest */) |
| 64 | 63 |
| 65 // The render process' response to a HasManifest. The |request_id| is the one | 64 // The render process' response to a HasManifest. The |request_id| is the one |
| 66 // sent from the browser. The |bool| will be true if the current document has a | 65 // sent from the browser. The |bool| will be true if the current document has a |
| 67 // manifest link URL, and false otherwise. | 66 // manifest link URL, and false otherwise. |
| 68 IPC_MESSAGE_ROUTED2(ManifestManagerHostMsg_HasManifestResponse, | 67 IPC_MESSAGE_ROUTED2(ManifestManagerHostMsg_HasManifestResponse, |
| 69 int, /* request_id */ | 68 int, /* request_id */ |
| 70 bool /* true if the document has a manifest link */) | 69 bool /* true if the document has a manifest link */) |
| OLD | NEW |