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 <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 // HTTP. This is the default behavior of URLRequest, corresponding to | 101 // HTTP. This is the default behavior of URLRequest, corresponding to |
102 // CLEAR_REFERRER_ON_TRANSITION_FROM_SECURE_TO_INSECURE. Alternatively, the | 102 // CLEAR_REFERRER_ON_TRANSITION_FROM_SECURE_TO_INSECURE. Alternatively, the |
103 // referrer policy can be set to never change the referrer header. This | 103 // referrer policy can be set to never change the referrer header. This |
104 // behavior corresponds to NEVER_CLEAR_REFERRER. Embedders will want to use | 104 // behavior corresponds to NEVER_CLEAR_REFERRER. Embedders will want to use |
105 // NEVER_CLEAR_REFERRER when implementing the meta-referrer support | 105 // NEVER_CLEAR_REFERRER when implementing the meta-referrer support |
106 // (http://wiki.whatwg.org/wiki/Meta_referrer) and sending requests with a | 106 // (http://wiki.whatwg.org/wiki/Meta_referrer) and sending requests with a |
107 // non-default referrer policy. Only the default referrer policy requires | 107 // non-default referrer policy. Only the default referrer policy requires |
108 // the referrer to be cleared on transitions from HTTPS to HTTP. | 108 // the referrer to be cleared on transitions from HTTPS to HTTP. |
109 enum ReferrerPolicy { | 109 enum ReferrerPolicy { |
110 CLEAR_REFERRER_ON_TRANSITION_FROM_SECURE_TO_INSECURE, | 110 CLEAR_REFERRER_ON_TRANSITION_FROM_SECURE_TO_INSECURE, |
| 111 REDUCE_REFERRER_GRANULARITY_ON_TRANSITION_CROSS_ORIGIN, |
111 NEVER_CLEAR_REFERRER, | 112 NEVER_CLEAR_REFERRER, |
112 }; | 113 }; |
113 | 114 |
114 // First-party URL redirect policy: During server redirects, the first-party | 115 // First-party URL redirect policy: During server redirects, the first-party |
115 // URL for cookies normally doesn't change. However, if the request is a | 116 // URL for cookies normally doesn't change. However, if the request is a |
116 // top-level first-party request, the first-party URL should be updated to the | 117 // top-level first-party request, the first-party URL should be updated to the |
117 // URL on every redirect. | 118 // URL on every redirect. |
118 enum FirstPartyURLPolicy { | 119 enum FirstPartyURLPolicy { |
119 NEVER_CHANGE_FIRST_PARTY_URL, | 120 NEVER_CHANGE_FIRST_PARTY_URL, |
120 UPDATE_FIRST_PARTY_URL_ON_REDIRECT, | 121 UPDATE_FIRST_PARTY_URL_ON_REDIRECT, |
(...skipping 775 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
896 | 897 |
897 // The proxy server used for this request, if any. | 898 // The proxy server used for this request, if any. |
898 HostPortPair proxy_server_; | 899 HostPortPair proxy_server_; |
899 | 900 |
900 DISALLOW_COPY_AND_ASSIGN(URLRequest); | 901 DISALLOW_COPY_AND_ASSIGN(URLRequest); |
901 }; | 902 }; |
902 | 903 |
903 } // namespace net | 904 } // namespace net |
904 | 905 |
905 #endif // NET_URL_REQUEST_URL_REQUEST_H_ | 906 #endif // NET_URL_REQUEST_URL_REQUEST_H_ |
OLD | NEW |