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

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

Issue 2633663003: Implements strict secure cookies as the default behavior in //net (Closed)
Patch Set: Rebase on ToT Created 3 years, 10 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 "base/trace_event/trace_event.h" 9 #include "base/trace_event/trace_event.h"
10 #include "net/base/load_flags.h" 10 #include "net/base/load_flags.h"
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 const GURL& first_party_for_cookies) const { 169 const GURL& first_party_for_cookies) const {
170 TRACE_EVENT0(kNetTracingCategory, "NetworkDelegate::CanEnablePrivacyMode"); 170 TRACE_EVENT0(kNetTracingCategory, "NetworkDelegate::CanEnablePrivacyMode");
171 DCHECK(CalledOnValidThread()); 171 DCHECK(CalledOnValidThread());
172 return OnCanEnablePrivacyMode(url, first_party_for_cookies); 172 return OnCanEnablePrivacyMode(url, first_party_for_cookies);
173 } 173 }
174 174
175 bool NetworkDelegate::AreExperimentalCookieFeaturesEnabled() const { 175 bool NetworkDelegate::AreExperimentalCookieFeaturesEnabled() const {
176 return OnAreExperimentalCookieFeaturesEnabled(); 176 return OnAreExperimentalCookieFeaturesEnabled();
177 } 177 }
178 178
179 bool NetworkDelegate::AreStrictSecureCookiesEnabled() const {
180 return OnAreStrictSecureCookiesEnabled();
181 }
182
183 bool NetworkDelegate::CancelURLRequestWithPolicyViolatingReferrerHeader( 179 bool NetworkDelegate::CancelURLRequestWithPolicyViolatingReferrerHeader(
184 const URLRequest& request, 180 const URLRequest& request,
185 const GURL& target_url, 181 const GURL& target_url,
186 const GURL& referrer_url) const { 182 const GURL& referrer_url) const {
187 DCHECK(CalledOnValidThread()); 183 DCHECK(CalledOnValidThread());
188 return OnCancelURLRequestWithPolicyViolatingReferrerHeader( 184 return OnCancelURLRequestWithPolicyViolatingReferrerHeader(
189 request, target_url, referrer_url); 185 request, target_url, referrer_url);
190 } 186 }
191 187
192 void NetworkDelegate::OnResponseStarted(URLRequest* request, int net_error) { 188 void NetworkDelegate::OnResponseStarted(URLRequest* request, int net_error) {
(...skipping 10 matching lines...) Expand all
203 int net_error) { 199 int net_error) {
204 OnCompleted(request, started); 200 OnCompleted(request, started);
205 } 201 }
206 202
207 // Deprecated. 203 // Deprecated.
208 void NetworkDelegate::OnCompleted(URLRequest* request, bool started) { 204 void NetworkDelegate::OnCompleted(URLRequest* request, bool started) {
209 NOTREACHED(); 205 NOTREACHED();
210 } 206 }
211 207
212 } // namespace net 208 } // 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