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

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

Issue 1032063002: Enable 'First-Party-Only' cookies by default. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Friend. Created 5 years, 9 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/network_delegate.h ('k') | net/base/network_delegate_impl.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 (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 #include "net/base/network_delegate.h" 5 #include "net/base/network_delegate.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/profiler/scoped_tracker.h" 8 #include "base/profiler/scoped_tracker.h"
9 #include "net/base/load_flags.h" 9 #include "net/base/load_flags.h"
10 #include "net/base/net_errors.h" 10 #include "net/base/net_errors.h"
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 const GURL& url, 222 const GURL& url,
223 const GURL& first_party_for_cookies) const { 223 const GURL& first_party_for_cookies) const {
224 DCHECK(CalledOnValidThread()); 224 DCHECK(CalledOnValidThread());
225 // TODO(vadimt): Remove ScopedTracker below once crbug.com/423948 is fixed. 225 // TODO(vadimt): Remove ScopedTracker below once crbug.com/423948 is fixed.
226 tracked_objects::ScopedTracker tracking_profile( 226 tracked_objects::ScopedTracker tracking_profile(
227 FROM_HERE_WITH_EXPLICIT_FUNCTION( 227 FROM_HERE_WITH_EXPLICIT_FUNCTION(
228 "423948 NetworkDelegate::OnCanEnablePrivacyMode")); 228 "423948 NetworkDelegate::OnCanEnablePrivacyMode"));
229 return OnCanEnablePrivacyMode(url, first_party_for_cookies); 229 return OnCanEnablePrivacyMode(url, first_party_for_cookies);
230 } 230 }
231 231
232 bool NetworkDelegate::FirstPartyOnlyCookieExperimentEnabled() const {
233 return OnFirstPartyOnlyCookieExperimentEnabled();
234 }
235
236 bool NetworkDelegate::CancelURLRequestWithPolicyViolatingReferrerHeader( 232 bool NetworkDelegate::CancelURLRequestWithPolicyViolatingReferrerHeader(
237 const URLRequest& request, 233 const URLRequest& request,
238 const GURL& target_url, 234 const GURL& target_url,
239 const GURL& referrer_url) const { 235 const GURL& referrer_url) const {
240 DCHECK(CalledOnValidThread()); 236 DCHECK(CalledOnValidThread());
241 // TODO(vadimt): Remove ScopedTracker below once crbug.com/423948 is fixed. 237 // TODO(vadimt): Remove ScopedTracker below once crbug.com/423948 is fixed.
242 tracked_objects::ScopedTracker tracking_profile( 238 tracked_objects::ScopedTracker tracking_profile(
243 FROM_HERE_WITH_EXPLICIT_FUNCTION( 239 FROM_HERE_WITH_EXPLICIT_FUNCTION(
244 "423948 NetworkDelegate::OnCancelURLRequestWithPolicy...")); 240 "423948 NetworkDelegate::OnCancelURLRequestWithPolicy..."));
245 return OnCancelURLRequestWithPolicyViolatingReferrerHeader( 241 return OnCancelURLRequestWithPolicyViolatingReferrerHeader(
246 request, target_url, referrer_url); 242 request, target_url, referrer_url);
247 } 243 }
248 244
249 } // namespace net 245 } // namespace net
OLDNEW
« no previous file with comments | « net/base/network_delegate.h ('k') | net/base/network_delegate_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698