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

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

Issue 1393193005: Implement $Secure- cookie prefix (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add another test 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
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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 return OnCanAccessFile(request, path); 167 return OnCanAccessFile(request, path);
168 } 168 }
169 169
170 bool NetworkDelegate::CanEnablePrivacyMode( 170 bool NetworkDelegate::CanEnablePrivacyMode(
171 const GURL& url, 171 const GURL& url,
172 const GURL& first_party_for_cookies) const { 172 const GURL& first_party_for_cookies) const {
173 DCHECK(CalledOnValidThread()); 173 DCHECK(CalledOnValidThread());
174 return OnCanEnablePrivacyMode(url, first_party_for_cookies); 174 return OnCanEnablePrivacyMode(url, first_party_for_cookies);
175 } 175 }
176 176
177 bool NetworkDelegate::FirstPartyOnlyCookieExperimentEnabled() const { 177 bool NetworkDelegate::ExperimentalFeaturesEnabled() const {
178 return OnFirstPartyOnlyCookieExperimentEnabled(); 178 return OnExperimentalFeaturesEnabled();
179 } 179 }
180 180
181 bool NetworkDelegate::CancelURLRequestWithPolicyViolatingReferrerHeader( 181 bool NetworkDelegate::CancelURLRequestWithPolicyViolatingReferrerHeader(
182 const URLRequest& request, 182 const URLRequest& request,
183 const GURL& target_url, 183 const GURL& target_url,
184 const GURL& referrer_url) const { 184 const GURL& referrer_url) const {
185 DCHECK(CalledOnValidThread()); 185 DCHECK(CalledOnValidThread());
186 return OnCancelURLRequestWithPolicyViolatingReferrerHeader( 186 return OnCancelURLRequestWithPolicyViolatingReferrerHeader(
187 request, target_url, referrer_url); 187 request, target_url, referrer_url);
188 } 188 }
189 189
190 } // namespace net 190 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698