| 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 30 matching lines...) Expand all Loading... |
| 41 IPC_STRUCT_TRAITS_MEMBER(gcm_sender_id) | 41 IPC_STRUCT_TRAITS_MEMBER(gcm_sender_id) |
| 42 IPC_STRUCT_TRAITS_END() | 42 IPC_STRUCT_TRAITS_END() |
| 43 | 43 |
| 44 // The browser process requests for the manifest linked with the associated | 44 // The browser process requests for the manifest linked with the associated |
| 45 // RenderFrame. The render process will respond via a RequestManifestResponse | 45 // RenderFrame. The render process will respond via a RequestManifestResponse |
| 46 // IPC message with a Manifest object attached to it and the associated | 46 // IPC message with a Manifest object attached to it and the associated |
| 47 // |request_id| that was initially given. | 47 // |request_id| that was initially given. |
| 48 IPC_MESSAGE_ROUTED1(ManifestManagerMsg_RequestManifest, | 48 IPC_MESSAGE_ROUTED1(ManifestManagerMsg_RequestManifest, |
| 49 int /* request_id */) | 49 int /* request_id */) |
| 50 | 50 |
| 51 // The browser process requests whether the document loaded in the associated | |
| 52 // RenderFrame has a manifest link URL. The render process will respond with | |
| 53 // a HasManifestResponse IPC message, along with a bool indicating the presence | |
| 54 // of a manifest link, and the |request_id| that was initially given. | |
| 55 IPC_MESSAGE_ROUTED1(ManifestManagerMsg_HasManifest, | |
| 56 int /* request_id */) | |
| 57 | |
| 58 // The render process' response to a RequestManifest. The |request_id| will | 51 // The render process' response to a RequestManifest. The |request_id| will |
| 59 // match the one that was initially received. The |manifest_url| and |manifest| | 52 // match the one that was initially received. |manifest_url| will be empty if |
| 60 // will be empty in case of any failure. | 53 // there is no manifest specified in the associated RenderFrame's document. |
| 54 // |manifest| will be empty if a manifest was specified, but could not be |
| 55 // parsed correctly. |
| 61 IPC_MESSAGE_ROUTED3(ManifestManagerHostMsg_RequestManifestResponse, | 56 IPC_MESSAGE_ROUTED3(ManifestManagerHostMsg_RequestManifestResponse, |
| 62 int, /* request_id */ | 57 int, /* request_id */ |
| 63 GURL, /* manifest URL */ | 58 GURL, /* manifest URL */ |
| 64 content::Manifest /* manifest */) | 59 content::Manifest /* manifest */) |
| 65 | |
| 66 // The render process' response to a HasManifest. The |request_id| is the one | |
| 67 // sent from the browser. The |bool| will be true if the current document has a | |
| 68 // manifest link URL, and false otherwise. | |
| 69 IPC_MESSAGE_ROUTED2(ManifestManagerHostMsg_HasManifestResponse, | |
| 70 int, /* request_id */ | |
| 71 bool /* true if the document has a manifest link */) | |
| OLD | NEW |