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

Side by Side Diff: chrome/browser/net/chrome_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 "chrome/browser/net/chrome_network_delegate.h" 5 #include "chrome/browser/net/chrome_network_delegate.h"
6 6
7 #include <stdlib.h> 7 #include <stdlib.h>
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 713 matching lines...) Expand 10 before | Expand all | Expand 10 after
724 return false; 724 return false;
725 725
726 bool reading_cookie_allowed = cookie_settings_->IsReadingCookieAllowed( 726 bool reading_cookie_allowed = cookie_settings_->IsReadingCookieAllowed(
727 url, first_party_for_cookies); 727 url, first_party_for_cookies);
728 bool setting_cookie_allowed = cookie_settings_->IsSettingCookieAllowed( 728 bool setting_cookie_allowed = cookie_settings_->IsSettingCookieAllowed(
729 url, first_party_for_cookies); 729 url, first_party_for_cookies);
730 bool privacy_mode = !(reading_cookie_allowed && setting_cookie_allowed); 730 bool privacy_mode = !(reading_cookie_allowed && setting_cookie_allowed);
731 return privacy_mode; 731 return privacy_mode;
732 } 732 }
733 733
734 bool ChromeNetworkDelegate::OnFirstPartyOnlyCookieExperimentEnabled() const { 734 bool ChromeNetworkDelegate::OnExperimentalFeaturesEnabled() const {
735 return experimental_web_platform_features_enabled_; 735 return experimental_web_platform_features_enabled_;
736 } 736 }
737 737
738 bool ChromeNetworkDelegate::OnCancelURLRequestWithPolicyViolatingReferrerHeader( 738 bool ChromeNetworkDelegate::OnCancelURLRequestWithPolicyViolatingReferrerHeader(
739 const net::URLRequest& request, 739 const net::URLRequest& request,
740 const GURL& target_url, 740 const GURL& target_url,
741 const GURL& referrer_url) const { 741 const GURL& referrer_url) const {
742 ReportInvalidReferrerSend(target_url, referrer_url); 742 ReportInvalidReferrerSend(target_url, referrer_url);
743 return true; 743 return true;
744 } 744 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698