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

Side by Side Diff: net/base/layered_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/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 #include <utility> 7 #include <utility>
8 8
9 namespace net { 9 namespace net {
10 10
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 void LayeredNetworkDelegate::OnCanEnablePrivacyModeInternal( 225 void LayeredNetworkDelegate::OnCanEnablePrivacyModeInternal(
226 const GURL& url, 226 const GURL& url,
227 const GURL& first_party_for_cookies) const { 227 const GURL& first_party_for_cookies) const {
228 } 228 }
229 229
230 bool LayeredNetworkDelegate::OnAreExperimentalCookieFeaturesEnabled() const { 230 bool LayeredNetworkDelegate::OnAreExperimentalCookieFeaturesEnabled() const {
231 OnAreExperimentalCookieFeaturesEnabledInternal(); 231 OnAreExperimentalCookieFeaturesEnabledInternal();
232 return nested_network_delegate_->AreExperimentalCookieFeaturesEnabled(); 232 return nested_network_delegate_->AreExperimentalCookieFeaturesEnabled();
233 } 233 }
234 234
235 bool LayeredNetworkDelegate::OnAreStrictSecureCookiesEnabled() const {
236 OnAreStrictSecureCookiesEnabledInternal();
237 return nested_network_delegate_->AreStrictSecureCookiesEnabled();
238 }
239
240 void LayeredNetworkDelegate::OnAreExperimentalCookieFeaturesEnabledInternal() 235 void LayeredNetworkDelegate::OnAreExperimentalCookieFeaturesEnabledInternal()
241 const {} 236 const {}
242 237
243 void LayeredNetworkDelegate::OnAreStrictSecureCookiesEnabledInternal() const {}
244
245 bool LayeredNetworkDelegate:: 238 bool LayeredNetworkDelegate::
246 OnCancelURLRequestWithPolicyViolatingReferrerHeader( 239 OnCancelURLRequestWithPolicyViolatingReferrerHeader(
247 const URLRequest& request, 240 const URLRequest& request,
248 const GURL& target_url, 241 const GURL& target_url,
249 const GURL& referrer_url) const { 242 const GURL& referrer_url) const {
250 OnCancelURLRequestWithPolicyViolatingReferrerHeaderInternal( 243 OnCancelURLRequestWithPolicyViolatingReferrerHeaderInternal(
251 request, target_url, referrer_url); 244 request, target_url, referrer_url);
252 return nested_network_delegate_ 245 return nested_network_delegate_
253 ->CancelURLRequestWithPolicyViolatingReferrerHeader(request, target_url, 246 ->CancelURLRequestWithPolicyViolatingReferrerHeader(request, target_url,
254 referrer_url); 247 referrer_url);
255 } 248 }
256 249
257 void LayeredNetworkDelegate:: 250 void LayeredNetworkDelegate::
258 OnCancelURLRequestWithPolicyViolatingReferrerHeaderInternal( 251 OnCancelURLRequestWithPolicyViolatingReferrerHeaderInternal(
259 const URLRequest& request, 252 const URLRequest& request,
260 const GURL& target_url, 253 const GURL& target_url,
261 const GURL& referrer_url) const { 254 const GURL& referrer_url) const {
262 } 255 }
263 256
264 } // namespace net 257 } // 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