OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 resource loading. | 5 // IPC messages for resource loading. |
6 | 6 |
7 // Multiply-included message file, hence no include guard. | 7 // Multiply-included message file, hence no include guard. |
8 #include "base/shared_memory.h" | 8 #include "base/shared_memory.h" |
9 #include "content/public/common/common_param_traits.h" | 9 #include "content/public/common/common_param_traits.h" |
10 #include "content/public/common/resource_response.h" | 10 #include "content/public/common/resource_response.h" |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 IPC_STRUCT_TRAITS_END() | 51 IPC_STRUCT_TRAITS_END() |
52 | 52 |
53 // Parameters for a resource request. | 53 // Parameters for a resource request. |
54 IPC_STRUCT_BEGIN(ResourceHostMsg_Request) | 54 IPC_STRUCT_BEGIN(ResourceHostMsg_Request) |
55 // The request method: GET, POST, etc. | 55 // The request method: GET, POST, etc. |
56 IPC_STRUCT_MEMBER(std::string, method) | 56 IPC_STRUCT_MEMBER(std::string, method) |
57 | 57 |
58 // The requested URL. | 58 // The requested URL. |
59 IPC_STRUCT_MEMBER(GURL, url) | 59 IPC_STRUCT_MEMBER(GURL, url) |
60 | 60 |
| 61 // The virtual URL associated with the requested URL. Can be empty if there is |
| 62 // no virtual URL. |
| 63 IPC_STRUCT_MEMBER(GURL, virtual_url) |
| 64 |
61 // Usually the URL of the document in the top-level window, which may be | 65 // Usually the URL of the document in the top-level window, which may be |
62 // checked by the third-party cookie blocking policy. Leaving it empty may | 66 // checked by the third-party cookie blocking policy. Leaving it empty may |
63 // lead to undesired cookie blocking. Third-party cookie blocking can be | 67 // lead to undesired cookie blocking. Third-party cookie blocking can be |
64 // bypassed by setting first_party_for_cookies = url, but this should ideally | 68 // bypassed by setting first_party_for_cookies = url, but this should ideally |
65 // only be done if there really is no way to determine the correct value. | 69 // only be done if there really is no way to determine the correct value. |
66 IPC_STRUCT_MEMBER(GURL, first_party_for_cookies) | 70 IPC_STRUCT_MEMBER(GURL, first_party_for_cookies) |
67 | 71 |
68 // The referrer to use (may be empty). | 72 // The referrer to use (may be empty). |
69 IPC_STRUCT_MEMBER(GURL, referrer) | 73 IPC_STRUCT_MEMBER(GURL, referrer) |
70 | 74 |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 int /* request_id */) | 217 int /* request_id */) |
214 | 218 |
215 // Sent by the renderer process to acknowledge receipt of a | 219 // Sent by the renderer process to acknowledge receipt of a |
216 // UploadProgress message. | 220 // UploadProgress message. |
217 IPC_MESSAGE_ROUTED1(ResourceHostMsg_UploadProgress_ACK, | 221 IPC_MESSAGE_ROUTED1(ResourceHostMsg_UploadProgress_ACK, |
218 int /* request_id */) | 222 int /* request_id */) |
219 | 223 |
220 // Sent when the renderer process deletes a resource loader. | 224 // Sent when the renderer process deletes a resource loader. |
221 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile, | 225 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile, |
222 int /* request_id */) | 226 int /* request_id */) |
OLD | NEW |