| 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( |
| 18 content::Manifest::Icon::IconPurpose, |
| 19 content::Manifest::Icon::IconPurpose::ICON_PURPOSE_LAST) |
| 20 |
| 17 IPC_STRUCT_TRAITS_BEGIN(content::Manifest::Icon) | 21 IPC_STRUCT_TRAITS_BEGIN(content::Manifest::Icon) |
| 18 IPC_STRUCT_TRAITS_MEMBER(src) | 22 IPC_STRUCT_TRAITS_MEMBER(src) |
| 19 IPC_STRUCT_TRAITS_MEMBER(type) | 23 IPC_STRUCT_TRAITS_MEMBER(type) |
| 20 IPC_STRUCT_TRAITS_MEMBER(sizes) | 24 IPC_STRUCT_TRAITS_MEMBER(sizes) |
| 25 IPC_STRUCT_TRAITS_MEMBER(purpose) |
| 21 IPC_STRUCT_TRAITS_END() | 26 IPC_STRUCT_TRAITS_END() |
| 22 | 27 |
| 23 IPC_STRUCT_TRAITS_BEGIN(content::Manifest::ShareTarget) | 28 IPC_STRUCT_TRAITS_BEGIN(content::Manifest::ShareTarget) |
| 24 IPC_STRUCT_TRAITS_MEMBER(url_template) | 29 IPC_STRUCT_TRAITS_MEMBER(url_template) |
| 25 IPC_STRUCT_TRAITS_END() | 30 IPC_STRUCT_TRAITS_END() |
| 26 | 31 |
| 27 IPC_STRUCT_TRAITS_BEGIN(content::Manifest::RelatedApplication) | 32 IPC_STRUCT_TRAITS_BEGIN(content::Manifest::RelatedApplication) |
| 28 IPC_STRUCT_TRAITS_MEMBER(platform) | 33 IPC_STRUCT_TRAITS_MEMBER(platform) |
| 29 IPC_STRUCT_TRAITS_MEMBER(url) | 34 IPC_STRUCT_TRAITS_MEMBER(url) |
| 30 IPC_STRUCT_TRAITS_MEMBER(id) | 35 IPC_STRUCT_TRAITS_MEMBER(id) |
| (...skipping 24 matching lines...) Expand all Loading... |
| 55 | 60 |
| 56 // The render process' response to a RequestManifest. The |request_id| will | 61 // The render process' response to a RequestManifest. The |request_id| will |
| 57 // match the one that was initially received. |manifest_url| will be empty if | 62 // match the one that was initially received. |manifest_url| will be empty if |
| 58 // there is no manifest specified in the associated RenderFrame's document. | 63 // there is no manifest specified in the associated RenderFrame's document. |
| 59 // |manifest| will be empty if a manifest was specified, but could not be | 64 // |manifest| will be empty if a manifest was specified, but could not be |
| 60 // parsed correctly. | 65 // parsed correctly. |
| 61 IPC_MESSAGE_ROUTED3(ManifestManagerHostMsg_RequestManifestResponse, | 66 IPC_MESSAGE_ROUTED3(ManifestManagerHostMsg_RequestManifestResponse, |
| 62 int, /* request_id */ | 67 int, /* request_id */ |
| 63 GURL, /* manifest URL */ | 68 GURL, /* manifest URL */ |
| 64 content::Manifest /* manifest */) | 69 content::Manifest /* manifest */) |
| OLD | NEW |