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

Side by Side Diff: net/http/http_server_properties_manager.cc

Issue 874603004: Remove HasAlternateProtocol(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Minor. Created 5 years, 10 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "net/http/http_server_properties_manager.h" 5 #include "net/http/http_server_properties_manager.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/metrics/histogram.h" 8 #include "base/metrics/histogram.h"
9 #include "base/prefs/pref_service.h" 9 #include "base/prefs/pref_service.h"
10 #include "base/single_thread_task_runner.h" 10 #include "base/single_thread_task_runner.h"
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 http_server_properties_impl_->SetHTTP11Required(server); 159 http_server_properties_impl_->SetHTTP11Required(server);
160 ScheduleUpdatePrefsOnNetworkThread(); 160 ScheduleUpdatePrefsOnNetworkThread();
161 } 161 }
162 162
163 void HttpServerPropertiesManager::MaybeForceHTTP11(const HostPortPair& server, 163 void HttpServerPropertiesManager::MaybeForceHTTP11(const HostPortPair& server,
164 SSLConfig* ssl_config) { 164 SSLConfig* ssl_config) {
165 DCHECK(network_task_runner_->RunsTasksOnCurrentThread()); 165 DCHECK(network_task_runner_->RunsTasksOnCurrentThread());
166 http_server_properties_impl_->MaybeForceHTTP11(server, ssl_config); 166 http_server_properties_impl_->MaybeForceHTTP11(server, ssl_config);
167 } 167 }
168 168
169 bool HttpServerPropertiesManager::HasAlternateProtocol(
170 const HostPortPair& server) {
171 DCHECK(network_task_runner_->RunsTasksOnCurrentThread());
172 return http_server_properties_impl_->HasAlternateProtocol(server);
173 }
174
175 AlternateProtocolInfo HttpServerPropertiesManager::GetAlternateProtocol( 169 AlternateProtocolInfo HttpServerPropertiesManager::GetAlternateProtocol(
176 const HostPortPair& server) { 170 const HostPortPair& server) {
177 DCHECK(network_task_runner_->RunsTasksOnCurrentThread()); 171 DCHECK(network_task_runner_->RunsTasksOnCurrentThread());
178 return http_server_properties_impl_->GetAlternateProtocol(server); 172 return http_server_properties_impl_->GetAlternateProtocol(server);
179 } 173 }
180 174
181 void HttpServerPropertiesManager::SetAlternateProtocol( 175 void HttpServerPropertiesManager::SetAlternateProtocol(
182 const HostPortPair& server, 176 const HostPortPair& server,
183 uint16 alternate_port, 177 uint16 alternate_port,
184 AlternateProtocol alternate_protocol, 178 AlternateProtocol alternate_protocol,
(...skipping 673 matching lines...) Expand 10 before | Expand all | Expand 10 after
858 completion.Run(); 852 completion.Run();
859 } 853 }
860 854
861 void HttpServerPropertiesManager::OnHttpServerPropertiesChanged() { 855 void HttpServerPropertiesManager::OnHttpServerPropertiesChanged() {
862 DCHECK(pref_task_runner_->RunsTasksOnCurrentThread()); 856 DCHECK(pref_task_runner_->RunsTasksOnCurrentThread());
863 if (!setting_prefs_) 857 if (!setting_prefs_)
864 ScheduleUpdateCacheOnPrefThread(); 858 ScheduleUpdateCacheOnPrefThread();
865 } 859 }
866 860
867 } // namespace net 861 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698