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::OnAreExperimentalCookieFeaturesEnabled() const { |
262 OnFirstPartyOnlyCookieExperimentEnabledInternal(); | 262 OnAreExperimentalCookieFeaturesEnabledInternal(); |
263 return nested_network_delegate_->FirstPartyOnlyCookieExperimentEnabled(); | 263 return nested_network_delegate_->AreExperimentalCookieFeaturesEnabled(); |
264 } | 264 } |
265 | 265 |
266 void LayeredNetworkDelegate::OnFirstPartyOnlyCookieExperimentEnabledInternal() | 266 void LayeredNetworkDelegate::OnAreExperimentalCookieFeaturesEnabledInternal() |
267 const { | 267 const {} |
268 } | |
269 | 268 |
270 bool LayeredNetworkDelegate:: | 269 bool LayeredNetworkDelegate:: |
271 OnCancelURLRequestWithPolicyViolatingReferrerHeader( | 270 OnCancelURLRequestWithPolicyViolatingReferrerHeader( |
272 const URLRequest& request, | 271 const URLRequest& request, |
273 const GURL& target_url, | 272 const GURL& target_url, |
274 const GURL& referrer_url) const { | 273 const GURL& referrer_url) const { |
275 OnCancelURLRequestWithPolicyViolatingReferrerHeaderInternal( | 274 OnCancelURLRequestWithPolicyViolatingReferrerHeaderInternal( |
276 request, target_url, referrer_url); | 275 request, target_url, referrer_url); |
277 return nested_network_delegate_ | 276 return nested_network_delegate_ |
278 ->CancelURLRequestWithPolicyViolatingReferrerHeader(request, target_url, | 277 ->CancelURLRequestWithPolicyViolatingReferrerHeader(request, target_url, |
279 referrer_url); | 278 referrer_url); |
280 } | 279 } |
281 | 280 |
282 void LayeredNetworkDelegate:: | 281 void LayeredNetworkDelegate:: |
283 OnCancelURLRequestWithPolicyViolatingReferrerHeaderInternal( | 282 OnCancelURLRequestWithPolicyViolatingReferrerHeaderInternal( |
284 const URLRequest& request, | 283 const URLRequest& request, |
285 const GURL& target_url, | 284 const GURL& target_url, |
286 const GURL& referrer_url) const { | 285 const GURL& referrer_url) const { |
287 } | 286 } |
288 | 287 |
289 } // namespace net | 288 } // namespace net |
OLD | NEW |