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

Side by Side Diff: chrome/browser/io_thread.cc

Issue 2546533003: Respect QuicAllowed policy for new streams (Closed)
Patch Set: Revert accidental format Created 3 years, 11 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/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
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::DisableQuic() {
801 params_.enable_quic = false;
802
803 if (globals_->system_http_network_session)
804 globals_->system_http_network_session->DisableQuic();
805
806 if (globals_->proxy_script_fetcher_http_network_session)
807 globals_->proxy_script_fetcher_http_network_session->DisableQuic();
808 }
809
800 base::TimeTicks IOThread::creation_time() const { 810 base::TimeTicks IOThread::creation_time() const {
801 return creation_time_; 811 return creation_time_;
802 } 812 }
803 813
804 net::SSLConfigService* IOThread::GetSSLConfigService() { 814 net::SSLConfigService* IOThread::GetSSLConfigService() {
805 return ssl_config_service_manager_->Get(); 815 return ssl_config_service_manager_->Get();
806 } 816 }
807 817
808 void IOThread::ChangedToOnTheRecordOnIOThread() { 818 void IOThread::ChangedToOnTheRecordOnIOThread() {
809 DCHECK_CURRENTLY_ON(BrowserThread::IO); 819 DCHECK_CURRENTLY_ON(BrowserThread::IO);
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
1089 1099
1090 // TODO(rtenneti): We should probably use HttpServerPropertiesManager for the 1100 // TODO(rtenneti): We should probably use HttpServerPropertiesManager for the
1091 // system URLRequestContext too. There's no reason this should be tied to a 1101 // system URLRequestContext too. There's no reason this should be tied to a
1092 // profile. 1102 // profile.
1093 return context; 1103 return context;
1094 } 1104 }
1095 1105
1096 metrics::UpdateUsagePrefCallbackType IOThread::GetMetricsDataUseForwarder() { 1106 metrics::UpdateUsagePrefCallbackType IOThread::GetMetricsDataUseForwarder() {
1097 return base::Bind(&UpdateMetricsUsagePrefsOnUIThread); 1107 return base::Bind(&UpdateMetricsUsagePrefsOnUIThread);
1098 } 1108 }
OLDNEW
« no previous file with comments | « chrome/browser/io_thread.h ('k') | chrome/browser/policy/configuration_policy_handler_list_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698