| OLD | NEW |
| 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 Loading... |
| 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::OnExperimentalCookieFeaturesEnabled() 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 } |
| OLD | NEW |