| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #ifndef CONTENT_COMMON_RESOURCE_REQUEST_H_ | 5 #ifndef CONTENT_COMMON_RESOURCE_REQUEST_H_ |
| 6 #define CONTENT_COMMON_RESOURCE_REQUEST_H_ | 6 #define CONTENT_COMMON_RESOURCE_REQUEST_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 // URL representing the first-party origin for the request, which may be | 40 // URL representing the first-party origin for the request, which may be |
| 41 // checked by the third-party cookie blocking policy. This is usually the URL | 41 // checked by the third-party cookie blocking policy. This is usually the URL |
| 42 // of the document in the top-level window. Leaving it empty may lead to | 42 // of the document in the top-level window. Leaving it empty may lead to |
| 43 // undesired cookie blocking. Third-party cookie blocking can be bypassed by | 43 // undesired cookie blocking. Third-party cookie blocking can be bypassed by |
| 44 // setting first_party_for_cookies = url, but this should ideally only be | 44 // setting first_party_for_cookies = url, but this should ideally only be |
| 45 // done if there really is no way to determine the correct value. | 45 // done if there really is no way to determine the correct value. |
| 46 GURL first_party_for_cookies; | 46 GURL first_party_for_cookies; |
| 47 | 47 |
| 48 // The origin of the context which initiated the request, which will be used | 48 // The origin of the context which initiated the request, which will be used |
| 49 // for cookie checks like 'First-Party-Only'. | 49 // for cookie checks like 'First-Party-Only'. |
| 50 url::Origin request_initiator; | 50 scoped_refptr<url::NullableOrigin> request_initiator; |
| 51 | 51 |
| 52 // The referrer to use (may be empty). | 52 // The referrer to use (may be empty). |
| 53 GURL referrer; | 53 GURL referrer; |
| 54 | 54 |
| 55 // The referrer policy to use. | 55 // The referrer policy to use. |
| 56 blink::WebReferrerPolicy referrer_policy = blink::WebReferrerPolicyAlways; | 56 blink::WebReferrerPolicy referrer_policy = blink::WebReferrerPolicyAlways; |
| 57 | 57 |
| 58 // The frame's visibility state. | 58 // The frame's visibility state. |
| 59 blink::WebPageVisibilityState visibility_state = | 59 blink::WebPageVisibilityState visibility_state = |
| 60 blink::WebPageVisibilityStateVisible; | 60 blink::WebPageVisibilityStateVisible; |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 bool initiated_in_secure_context = false; | 186 bool initiated_in_secure_context = false; |
| 187 | 187 |
| 188 // The response should be downloaded and stored in the network cache, but not | 188 // The response should be downloaded and stored in the network cache, but not |
| 189 // sent back to the renderer. | 189 // sent back to the renderer. |
| 190 bool download_to_network_cache_only = false; | 190 bool download_to_network_cache_only = false; |
| 191 }; | 191 }; |
| 192 | 192 |
| 193 } // namespace content | 193 } // namespace content |
| 194 | 194 |
| 195 #endif // CONTENT_COMMON_RESOURCE_REQUEST_H_ | 195 #endif // CONTENT_COMMON_RESOURCE_REQUEST_H_ |
| OLD | NEW |