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 #include "net/base/layered_network_delegate.h" | 5 #include "net/base/layered_network_delegate.h" |
6 | 6 |
7 namespace net { | 7 namespace net { |
8 | 8 |
9 LayeredNetworkDelegate::LayeredNetworkDelegate( | 9 LayeredNetworkDelegate::LayeredNetworkDelegate( |
10 scoped_ptr<NetworkDelegate> nested_network_delegate) | 10 scoped_ptr<NetworkDelegate> nested_network_delegate) |
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
251 OnCanEnablePrivacyModeInternal(url, first_party_for_cookies); | 251 OnCanEnablePrivacyModeInternal(url, first_party_for_cookies); |
252 return nested_network_delegate_->CanEnablePrivacyMode( | 252 return nested_network_delegate_->CanEnablePrivacyMode( |
253 url, first_party_for_cookies); | 253 url, first_party_for_cookies); |
254 } | 254 } |
255 | 255 |
256 void LayeredNetworkDelegate::OnCanEnablePrivacyModeInternal( | 256 void LayeredNetworkDelegate::OnCanEnablePrivacyModeInternal( |
257 const GURL& url, | 257 const GURL& url, |
258 const GURL& first_party_for_cookies) const { | 258 const GURL& first_party_for_cookies) const { |
259 } | 259 } |
260 | 260 |
261 bool LayeredNetworkDelegate::OnFirstPartyOnlyCookieExperimentEnabled() const { | 261 bool LayeredNetworkDelegate::OnExperimentalFeaturesEnabled() const { |
262 OnFirstPartyOnlyCookieExperimentEnabledInternal(); | 262 OnExperimentalFeaturesEnabledInternal(); |
263 return nested_network_delegate_->FirstPartyOnlyCookieExperimentEnabled(); | 263 return nested_network_delegate_->ExperimentalFeaturesEnabled(); |
264 } | 264 } |
265 | 265 |
266 void LayeredNetworkDelegate::OnFirstPartyOnlyCookieExperimentEnabledInternal() | 266 void LayeredNetworkDelegate::OnExperimentalFeaturesEnabledInternal() const {} |
267 const { | |
268 } | |
269 | 267 |
270 bool LayeredNetworkDelegate:: | 268 bool LayeredNetworkDelegate:: |
271 OnCancelURLRequestWithPolicyViolatingReferrerHeader( | 269 OnCancelURLRequestWithPolicyViolatingReferrerHeader( |
272 const URLRequest& request, | 270 const URLRequest& request, |
273 const GURL& target_url, | 271 const GURL& target_url, |
274 const GURL& referrer_url) const { | 272 const GURL& referrer_url) const { |
275 OnCancelURLRequestWithPolicyViolatingReferrerHeaderInternal( | 273 OnCancelURLRequestWithPolicyViolatingReferrerHeaderInternal( |
276 request, target_url, referrer_url); | 274 request, target_url, referrer_url); |
277 return nested_network_delegate_ | 275 return nested_network_delegate_ |
278 ->CancelURLRequestWithPolicyViolatingReferrerHeader(request, target_url, | 276 ->CancelURLRequestWithPolicyViolatingReferrerHeader(request, target_url, |
279 referrer_url); | 277 referrer_url); |
280 } | 278 } |
281 | 279 |
282 void LayeredNetworkDelegate:: | 280 void LayeredNetworkDelegate:: |
283 OnCancelURLRequestWithPolicyViolatingReferrerHeaderInternal( | 281 OnCancelURLRequestWithPolicyViolatingReferrerHeaderInternal( |
284 const URLRequest& request, | 282 const URLRequest& request, |
285 const GURL& target_url, | 283 const GURL& target_url, |
286 const GURL& referrer_url) const { | 284 const GURL& referrer_url) const { |
287 } | 285 } |
288 | 286 |
289 } // namespace net | 287 } // namespace net |
OLD | NEW |