Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(117)

Side by Side Diff: net/base/layered_network_delegate.cc

Issue 1392853006: Rename NetworkDelegate first-party-only flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rename to Are<blah> Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/base/layered_network_delegate.h ('k') | net/base/network_delegate.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « net/base/layered_network_delegate.h ('k') | net/base/network_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698