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/io_thread.h" | 5 #include "chrome/browser/io_thread.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/base64.h" | 10 #include "base/base64.h" |
(...skipping 779 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
790 | 790 |
791 net::HostCache* host_cache = globals_->host_resolver->GetHostCache(); | 791 net::HostCache* host_cache = globals_->host_resolver->GetHostCache(); |
792 if (host_cache) | 792 if (host_cache) |
793 host_cache->ClearForHosts(host_filter); | 793 host_cache->ClearForHosts(host_filter); |
794 } | 794 } |
795 | 795 |
796 const net::HttpNetworkSession::Params& IOThread::NetworkSessionParams() const { | 796 const net::HttpNetworkSession::Params& IOThread::NetworkSessionParams() const { |
797 return params_; | 797 return params_; |
798 } | 798 } |
799 | 799 |
| 800 void IOThread::UpdateNetworkSessionParams( |
| 801 net::HttpNetworkSession::ParamsUpdate params_update) { |
| 802 params_.enable_quic = params_update.enable_quic_new; |
| 803 |
| 804 if (globals_->system_http_network_session) |
| 805 globals_->system_http_network_session->UpdateParams(params_update); |
| 806 |
| 807 if (globals_->proxy_script_fetcher_http_network_session) |
| 808 globals_->proxy_script_fetcher_http_network_session->UpdateParams( |
| 809 params_update); |
| 810 } |
| 811 |
800 base::TimeTicks IOThread::creation_time() const { | 812 base::TimeTicks IOThread::creation_time() const { |
801 return creation_time_; | 813 return creation_time_; |
802 } | 814 } |
803 | 815 |
804 net::SSLConfigService* IOThread::GetSSLConfigService() { | 816 net::SSLConfigService* IOThread::GetSSLConfigService() { |
805 return ssl_config_service_manager_->Get(); | 817 return ssl_config_service_manager_->Get(); |
806 } | 818 } |
807 | 819 |
808 void IOThread::ChangedToOnTheRecordOnIOThread() { | 820 void IOThread::ChangedToOnTheRecordOnIOThread() { |
809 DCHECK_CURRENTLY_ON(BrowserThread::IO); | 821 DCHECK_CURRENTLY_ON(BrowserThread::IO); |
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1089 | 1101 |
1090 // TODO(rtenneti): We should probably use HttpServerPropertiesManager for the | 1102 // TODO(rtenneti): We should probably use HttpServerPropertiesManager for the |
1091 // system URLRequestContext too. There's no reason this should be tied to a | 1103 // system URLRequestContext too. There's no reason this should be tied to a |
1092 // profile. | 1104 // profile. |
1093 return context; | 1105 return context; |
1094 } | 1106 } |
1095 | 1107 |
1096 metrics::UpdateUsagePrefCallbackType IOThread::GetMetricsDataUseForwarder() { | 1108 metrics::UpdateUsagePrefCallbackType IOThread::GetMetricsDataUseForwarder() { |
1097 return base::Bind(&UpdateMetricsUsagePrefsOnUIThread); | 1109 return base::Bind(&UpdateMetricsUsagePrefsOnUIThread); |
1098 } | 1110 } |
OLD | NEW |