OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_BASE_NETWORK_DELEGATE_IMPL_H_ | 5 #ifndef NET_BASE_NETWORK_DELEGATE_IMPL_H_ |
6 #define NET_BASE_NETWORK_DELEGATE_IMPL_H_ | 6 #define NET_BASE_NETWORK_DELEGATE_IMPL_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 // is not tracked by the server. Usually is false, unless user privacy | 203 // is not tracked by the server. Usually is false, unless user privacy |
204 // settings block cookies from being get or set. | 204 // settings block cookies from being get or set. |
205 bool OnCanEnablePrivacyMode( | 205 bool OnCanEnablePrivacyMode( |
206 const GURL& url, | 206 const GURL& url, |
207 const GURL& first_party_for_cookies) const override; | 207 const GURL& first_party_for_cookies) const override; |
208 | 208 |
209 // Returns true if the embedder has enabled the "first-party" cookie | 209 // Returns true if the embedder has enabled the "first-party" cookie |
210 // experiment, and false otherwise. | 210 // experiment, and false otherwise. |
211 // | 211 // |
212 // TODO(mkwst): Remove this once we decide whether or not we wish to ship | 212 // TODO(mkwst): Remove this once we decide whether or not we wish to ship |
213 // first-party cookies. https://crbug.com/459154 | 213 // first-party cookies and cookie prefixes. https://crbug.com/459154, |
214 bool OnFirstPartyOnlyCookieExperimentEnabled() const override; | 214 // https://crbug.com/541511 |
| 215 bool OnExperimentalFeaturesEnabled() const override; |
215 | 216 |
216 // Called when the |referrer_url| for requesting |target_url| during handling | 217 // Called when the |referrer_url| for requesting |target_url| during handling |
217 // of the |request| is does not comply with the referrer policy (e.g. a | 218 // of the |request| is does not comply with the referrer policy (e.g. a |
218 // secure referrer for an insecure initial target). | 219 // secure referrer for an insecure initial target). |
219 // Returns true if the request should be cancelled. Otherwise, the referrer | 220 // Returns true if the request should be cancelled. Otherwise, the referrer |
220 // header is stripped from the request. | 221 // header is stripped from the request. |
221 bool OnCancelURLRequestWithPolicyViolatingReferrerHeader( | 222 bool OnCancelURLRequestWithPolicyViolatingReferrerHeader( |
222 const URLRequest& request, | 223 const URLRequest& request, |
223 const GURL& target_url, | 224 const GURL& target_url, |
224 const GURL& referrer_url) const override; | 225 const GURL& referrer_url) const override; |
225 }; | 226 }; |
226 | 227 |
227 } // namespace net | 228 } // namespace net |
228 | 229 |
229 #endif // NET_BASE_NETWORK_DELEGATE_IMPL_H_ | 230 #endif // NET_BASE_NETWORK_DELEGATE_IMPL_H_ |
OLD | NEW |