OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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" |
11 #include "ipc/ipc_message_macros.h" | 11 #include "ipc/ipc_message_macros.h" |
12 #include "net/base/upload_data.h" | 12 #include "net/base/upload_data.h" |
| 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebReferrerPolicy.h" |
13 | 14 |
14 #define IPC_MESSAGE_START ResourceMsgStart | 15 #define IPC_MESSAGE_START ResourceMsgStart |
15 #undef IPC_MESSAGE_EXPORT | 16 #undef IPC_MESSAGE_EXPORT |
16 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 17 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
17 | 18 |
18 IPC_STRUCT_TRAITS_BEGIN(content::ResourceResponseHead) | 19 IPC_STRUCT_TRAITS_BEGIN(content::ResourceResponseHead) |
19 IPC_STRUCT_TRAITS_PARENT(webkit_glue::ResourceResponseInfo) | 20 IPC_STRUCT_TRAITS_PARENT(webkit_glue::ResourceResponseInfo) |
20 IPC_STRUCT_TRAITS_MEMBER(status) | 21 IPC_STRUCT_TRAITS_MEMBER(status) |
21 IPC_STRUCT_TRAITS_END() | 22 IPC_STRUCT_TRAITS_END() |
22 | 23 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 // Usually the URL of the document in the top-level window, which may be | 61 // Usually the URL of the document in the top-level window, which may be |
61 // checked by the third-party cookie blocking policy. Leaving it empty may | 62 // checked by the third-party cookie blocking policy. Leaving it empty may |
62 // lead to undesired cookie blocking. Third-party cookie blocking can be | 63 // lead to undesired cookie blocking. Third-party cookie blocking can be |
63 // bypassed by setting first_party_for_cookies = url, but this should ideally | 64 // bypassed by setting first_party_for_cookies = url, but this should ideally |
64 // only be done if there really is no way to determine the correct value. | 65 // only be done if there really is no way to determine the correct value. |
65 IPC_STRUCT_MEMBER(GURL, first_party_for_cookies) | 66 IPC_STRUCT_MEMBER(GURL, first_party_for_cookies) |
66 | 67 |
67 // The referrer to use (may be empty). | 68 // The referrer to use (may be empty). |
68 IPC_STRUCT_MEMBER(GURL, referrer) | 69 IPC_STRUCT_MEMBER(GURL, referrer) |
69 | 70 |
| 71 // The referrer policy to use. |
| 72 IPC_STRUCT_MEMBER(WebKit::WebReferrerPolicy, referrer_policy) |
| 73 |
70 // Additional HTTP request headers. | 74 // Additional HTTP request headers. |
71 IPC_STRUCT_MEMBER(std::string, headers) | 75 IPC_STRUCT_MEMBER(std::string, headers) |
72 | 76 |
73 // net::URLRequest load flags (0 by default). | 77 // net::URLRequest load flags (0 by default). |
74 IPC_STRUCT_MEMBER(int, load_flags) | 78 IPC_STRUCT_MEMBER(int, load_flags) |
75 | 79 |
76 // Process ID from which this request originated, or zero if it originated | 80 // Process ID from which this request originated, or zero if it originated |
77 // in the renderer itself. | 81 // in the renderer itself. |
78 IPC_STRUCT_MEMBER(int, origin_pid) | 82 IPC_STRUCT_MEMBER(int, origin_pid) |
79 | 83 |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 int /* request_id */) | 213 int /* request_id */) |
210 | 214 |
211 // Sent by the renderer process to acknowledge receipt of a | 215 // Sent by the renderer process to acknowledge receipt of a |
212 // UploadProgress message. | 216 // UploadProgress message. |
213 IPC_MESSAGE_ROUTED1(ResourceHostMsg_UploadProgress_ACK, | 217 IPC_MESSAGE_ROUTED1(ResourceHostMsg_UploadProgress_ACK, |
214 int /* request_id */) | 218 int /* request_id */) |
215 | 219 |
216 // Sent when the renderer process deletes a resource loader. | 220 // Sent when the renderer process deletes a resource loader. |
217 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile, | 221 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile, |
218 int /* request_id */) | 222 int /* request_id */) |
OLD | NEW |