| 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 #ifndef NET_URL_REQUEST_URL_REQUEST_H_ | 5 #ifndef NET_URL_REQUEST_URL_REQUEST_H_ |
| 6 #define NET_URL_REQUEST_URL_REQUEST_H_ | 6 #define NET_URL_REQUEST_URL_REQUEST_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 // on CLEAR_REFERRER_ON_TRANSITION_FROM_SECURE_TO_INSECURE: If the request | 95 // on CLEAR_REFERRER_ON_TRANSITION_FROM_SECURE_TO_INSECURE: If the request |
| 96 // downgrades from HTTPS to HTTP, the referrer will be cleared. If the request | 96 // downgrades from HTTPS to HTTP, the referrer will be cleared. If the request |
| 97 // transitions cross-origin (but does not downgrade), the referrer's | 97 // transitions cross-origin (but does not downgrade), the referrer's |
| 98 // granularity will be reduced (currently stripped down to an origin rather | 98 // granularity will be reduced (currently stripped down to an origin rather |
| 99 // than a full URL). Same-origin requests will send the full referrer. | 99 // than a full URL). Same-origin requests will send the full referrer. |
| 100 enum ReferrerPolicy { | 100 enum ReferrerPolicy { |
| 101 CLEAR_REFERRER_ON_TRANSITION_FROM_SECURE_TO_INSECURE, | 101 CLEAR_REFERRER_ON_TRANSITION_FROM_SECURE_TO_INSECURE, |
| 102 REDUCE_REFERRER_GRANULARITY_ON_TRANSITION_CROSS_ORIGIN, | 102 REDUCE_REFERRER_GRANULARITY_ON_TRANSITION_CROSS_ORIGIN, |
| 103 ORIGIN_ONLY_ON_TRANSITION_CROSS_ORIGIN, | 103 ORIGIN_ONLY_ON_TRANSITION_CROSS_ORIGIN, |
| 104 NEVER_CLEAR_REFERRER, | 104 NEVER_CLEAR_REFERRER, |
| 105 MAX_REFERRER_POLICY |
| 105 }; | 106 }; |
| 106 | 107 |
| 107 // First-party URL redirect policy: During server redirects, the first-party | 108 // First-party URL redirect policy: During server redirects, the first-party |
| 108 // URL for cookies normally doesn't change. However, if the request is a | 109 // URL for cookies normally doesn't change. However, if the request is a |
| 109 // top-level first-party request, the first-party URL should be updated to the | 110 // top-level first-party request, the first-party URL should be updated to the |
| 110 // URL on every redirect. | 111 // URL on every redirect. |
| 111 enum FirstPartyURLPolicy { | 112 enum FirstPartyURLPolicy { |
| 112 NEVER_CHANGE_FIRST_PARTY_URL, | 113 NEVER_CHANGE_FIRST_PARTY_URL, |
| 113 UPDATE_FIRST_PARTY_URL_ON_REDIRECT, | 114 UPDATE_FIRST_PARTY_URL_ON_REDIRECT, |
| 114 }; | 115 }; |
| (...skipping 741 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 856 | 857 |
| 857 // The proxy server used for this request, if any. | 858 // The proxy server used for this request, if any. |
| 858 HostPortPair proxy_server_; | 859 HostPortPair proxy_server_; |
| 859 | 860 |
| 860 DISALLOW_COPY_AND_ASSIGN(URLRequest); | 861 DISALLOW_COPY_AND_ASSIGN(URLRequest); |
| 861 }; | 862 }; |
| 862 | 863 |
| 863 } // namespace net | 864 } // namespace net |
| 864 | 865 |
| 865 #endif // NET_URL_REQUEST_URL_REQUEST_H_ | 866 #endif // NET_URL_REQUEST_URL_REQUEST_H_ |
| OLD | NEW |