| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 int /* request_id */) | 48 int /* request_id */) |
| 49 | 49 |
| 50 // The browser process requests whether the document loaded in the associated | 50 // The browser process requests whether the document loaded in the associated |
| 51 // RenderFrame has a manifest link URL. The render process will respond with | 51 // RenderFrame has a manifest link URL. The render process will respond with |
| 52 // a HasManifestResponse IPC message, along with a bool indicating the presence | 52 // a HasManifestResponse IPC message, along with a bool indicating the presence |
| 53 // of a manifest link, and the |request_id| that was initially given. | 53 // of a manifest link, and the |request_id| that was initially given. |
| 54 IPC_MESSAGE_ROUTED1(ManifestManagerMsg_HasManifest, | 54 IPC_MESSAGE_ROUTED1(ManifestManagerMsg_HasManifest, |
| 55 int /* request_id */) | 55 int /* request_id */) |
| 56 | 56 |
| 57 // The render process' response to a RequestManifest. The |request_id| will | 57 // The render process' response to a RequestManifest. The |request_id| will |
| 58 // match the one that was initially received. The |manifest| object will be an | 58 // match the one that was initially received. The |manifest_url| and |manifest| |
| 59 // empty manifest in case of any failure. | 59 // will be empty in case of any failure. |
| 60 IPC_MESSAGE_ROUTED2(ManifestManagerHostMsg_RequestManifestResponse, | 60 IPC_MESSAGE_ROUTED3(ManifestManagerHostMsg_RequestManifestResponse, |
| 61 int, /* request_id */ | 61 int, /* request_id */ |
| 62 GURL, /* manifest URL */ |
| 62 content::Manifest /* manifest */) | 63 content::Manifest /* manifest */) |
| 63 | 64 |
| 64 // The render process' response to a HasManifest. The |request_id| is the one | 65 // The render process' response to a HasManifest. The |request_id| is the one |
| 65 // sent from the browser. The |bool| will be true if the current document has a | 66 // sent from the browser. The |bool| will be true if the current document has a |
| 66 // manifest link URL, and false otherwise. | 67 // manifest link URL, and false otherwise. |
| 67 IPC_MESSAGE_ROUTED2(ManifestManagerHostMsg_HasManifestResponse, | 68 IPC_MESSAGE_ROUTED2(ManifestManagerHostMsg_HasManifestResponse, |
| 68 int, /* request_id */ | 69 int, /* request_id */ |
| 69 bool /* true if the document has a manifest link */) | 70 bool /* true if the document has a manifest link */) |
| OLD | NEW |