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

Side by Side Diff: chrome/browser/profiles/profile_io_data.cc

Issue 1857383002: Refactor net predictor to use ResourceThrottles (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on #396550 Created 4 years, 6 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/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 889 matching lines...) Expand 10 before | Expand all | Expand 10 after
900 bool ProfileIOData::GetMetricsEnabledStateOnIOThread() const { 900 bool ProfileIOData::GetMetricsEnabledStateOnIOThread() const {
901 DCHECK_CURRENTLY_ON(BrowserThread::IO); 901 DCHECK_CURRENTLY_ON(BrowserThread::IO);
902 return enable_metrics_.GetValue(); 902 return enable_metrics_.GetValue();
903 } 903 }
904 904
905 bool ProfileIOData::IsDataReductionProxyEnabled() const { 905 bool ProfileIOData::IsDataReductionProxyEnabled() const {
906 return data_reduction_proxy_io_data() && 906 return data_reduction_proxy_io_data() &&
907 data_reduction_proxy_io_data()->IsEnabled(); 907 data_reduction_proxy_io_data()->IsEnabled();
908 } 908 }
909 909
910 chrome_browser_net::Predictor* ProfileIOData::GetPredictor() {
911 return nullptr;
912 }
913
910 void ProfileIOData::set_data_reduction_proxy_io_data( 914 void ProfileIOData::set_data_reduction_proxy_io_data(
911 std::unique_ptr<data_reduction_proxy::DataReductionProxyIOData> 915 std::unique_ptr<data_reduction_proxy::DataReductionProxyIOData>
912 data_reduction_proxy_io_data) const { 916 data_reduction_proxy_io_data) const {
913 data_reduction_proxy_io_data_ = std::move(data_reduction_proxy_io_data); 917 data_reduction_proxy_io_data_ = std::move(data_reduction_proxy_io_data);
914 } 918 }
915 919
916 base::WeakPtr<net::HttpServerProperties> 920 base::WeakPtr<net::HttpServerProperties>
917 ProfileIOData::http_server_properties() const { 921 ProfileIOData::http_server_properties() const {
918 return http_server_properties_->GetWeakPtr(); 922 return http_server_properties_->GetWeakPtr();
919 } 923 }
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after
1340 void ProfileIOData::SetCookieSettingsForTesting( 1344 void ProfileIOData::SetCookieSettingsForTesting(
1341 content_settings::CookieSettings* cookie_settings) { 1345 content_settings::CookieSettings* cookie_settings) {
1342 DCHECK(!cookie_settings_.get()); 1346 DCHECK(!cookie_settings_.get());
1343 cookie_settings_ = cookie_settings; 1347 cookie_settings_ = cookie_settings;
1344 } 1348 }
1345 1349
1346 policy::URLBlacklist::URLBlacklistState ProfileIOData::GetURLBlacklistState( 1350 policy::URLBlacklist::URLBlacklistState ProfileIOData::GetURLBlacklistState(
1347 const GURL& url) const { 1351 const GURL& url) const {
1348 return url_blacklist_manager_->GetURLBlacklistState(url); 1352 return url_blacklist_manager_->GetURLBlacklistState(url);
1349 } 1353 }
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_io_data.h ('k') | chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698