| 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/profiles/profile_io_data.h" | 5 #include "chrome/browser/profiles/profile_io_data.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 888 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 899 bool ProfileIOData::GetMetricsEnabledStateOnIOThread() const { | 899 bool ProfileIOData::GetMetricsEnabledStateOnIOThread() const { |
| 900 DCHECK_CURRENTLY_ON(BrowserThread::IO); | 900 DCHECK_CURRENTLY_ON(BrowserThread::IO); |
| 901 return enable_metrics_.GetValue(); | 901 return enable_metrics_.GetValue(); |
| 902 } | 902 } |
| 903 | 903 |
| 904 bool ProfileIOData::IsDataReductionProxyEnabled() const { | 904 bool ProfileIOData::IsDataReductionProxyEnabled() const { |
| 905 return data_reduction_proxy_io_data() && | 905 return data_reduction_proxy_io_data() && |
| 906 data_reduction_proxy_io_data()->IsEnabled(); | 906 data_reduction_proxy_io_data()->IsEnabled(); |
| 907 } | 907 } |
| 908 | 908 |
| 909 chrome_browser_net::Predictor* ProfileIOData::GetPredictor() { |
| 910 return nullptr; |
| 911 } |
| 912 |
| 909 void ProfileIOData::set_data_reduction_proxy_io_data( | 913 void ProfileIOData::set_data_reduction_proxy_io_data( |
| 910 std::unique_ptr<data_reduction_proxy::DataReductionProxyIOData> | 914 std::unique_ptr<data_reduction_proxy::DataReductionProxyIOData> |
| 911 data_reduction_proxy_io_data) const { | 915 data_reduction_proxy_io_data) const { |
| 912 data_reduction_proxy_io_data_ = std::move(data_reduction_proxy_io_data); | 916 data_reduction_proxy_io_data_ = std::move(data_reduction_proxy_io_data); |
| 913 } | 917 } |
| 914 | 918 |
| 915 base::WeakPtr<net::HttpServerProperties> | 919 base::WeakPtr<net::HttpServerProperties> |
| 916 ProfileIOData::http_server_properties() const { | 920 ProfileIOData::http_server_properties() const { |
| 917 return http_server_properties_->GetWeakPtr(); | 921 return http_server_properties_->GetWeakPtr(); |
| 918 } | 922 } |
| (...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1337 void ProfileIOData::SetCookieSettingsForTesting( | 1341 void ProfileIOData::SetCookieSettingsForTesting( |
| 1338 content_settings::CookieSettings* cookie_settings) { | 1342 content_settings::CookieSettings* cookie_settings) { |
| 1339 DCHECK(!cookie_settings_.get()); | 1343 DCHECK(!cookie_settings_.get()); |
| 1340 cookie_settings_ = cookie_settings; | 1344 cookie_settings_ = cookie_settings; |
| 1341 } | 1345 } |
| 1342 | 1346 |
| 1343 policy::URLBlacklist::URLBlacklistState ProfileIOData::GetURLBlacklistState( | 1347 policy::URLBlacklist::URLBlacklistState ProfileIOData::GetURLBlacklistState( |
| 1344 const GURL& url) const { | 1348 const GURL& url) const { |
| 1345 return url_blacklist_manager_->GetURLBlacklistState(url); | 1349 return url_blacklist_manager_->GetURLBlacklistState(url); |
| 1346 } | 1350 } |
| OLD | NEW |