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

Unified Diff: net/http/http_server_properties_manager.cc

Issue 1017453008: Make GetAlternateProtocol return AlternativeService. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: s/server/origin/g in other methods too. Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/http/http_server_properties_manager.h ('k') | net/http/http_server_properties_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_server_properties_manager.cc
diff --git a/net/http/http_server_properties_manager.cc b/net/http/http_server_properties_manager.cc
index 1c4bc235a3152f06682f619d7dda8436572c3fe2..5ff11633a55593b67ea2fb0e5655bb86ddf62bc6 100644
--- a/net/http/http_server_properties_manager.cc
+++ b/net/http/http_server_properties_manager.cc
@@ -180,27 +180,27 @@ void HttpServerPropertiesManager::MaybeForceHTTP11(const HostPortPair& server,
http_server_properties_impl_->MaybeForceHTTP11(server, ssl_config);
}
-AlternateProtocolInfo HttpServerPropertiesManager::GetAlternateProtocol(
- const HostPortPair& server) {
+AlternativeService HttpServerPropertiesManager::GetAlternativeService(
+ const HostPortPair& origin) {
DCHECK(network_task_runner_->RunsTasksOnCurrentThread());
- return http_server_properties_impl_->GetAlternateProtocol(server);
+ return http_server_properties_impl_->GetAlternativeService(origin);
}
void HttpServerPropertiesManager::SetAlternateProtocol(
- const HostPortPair& server,
+ const HostPortPair& origin,
uint16 alternate_port,
AlternateProtocol alternate_protocol,
double alternate_probability) {
DCHECK(network_task_runner_->RunsTasksOnCurrentThread());
http_server_properties_impl_->SetAlternateProtocol(
- server, alternate_port, alternate_protocol, alternate_probability);
+ origin, alternate_port, alternate_protocol, alternate_probability);
ScheduleUpdatePrefsOnNetworkThread();
}
void HttpServerPropertiesManager::SetBrokenAlternateProtocol(
- const HostPortPair& server) {
+ const HostPortPair& origin) {
DCHECK(network_task_runner_->RunsTasksOnCurrentThread());
- http_server_properties_impl_->SetBrokenAlternateProtocol(server);
+ http_server_properties_impl_->SetBrokenAlternateProtocol(origin);
ScheduleUpdatePrefsOnNetworkThread();
}
@@ -220,23 +220,23 @@ bool HttpServerPropertiesManager::IsAlternativeServiceBroken(
}
bool HttpServerPropertiesManager::WasAlternateProtocolRecentlyBroken(
- const HostPortPair& server) {
+ const HostPortPair& origin) {
DCHECK(network_task_runner_->RunsTasksOnCurrentThread());
return http_server_properties_impl_->WasAlternateProtocolRecentlyBroken(
- server);
+ origin);
}
void HttpServerPropertiesManager::ConfirmAlternateProtocol(
- const HostPortPair& server) {
+ const HostPortPair& origin) {
DCHECK(network_task_runner_->RunsTasksOnCurrentThread());
- http_server_properties_impl_->ConfirmAlternateProtocol(server);
+ http_server_properties_impl_->ConfirmAlternateProtocol(origin);
ScheduleUpdatePrefsOnNetworkThread();
}
void HttpServerPropertiesManager::ClearAlternateProtocol(
- const HostPortPair& server) {
+ const HostPortPair& origin) {
DCHECK(network_task_runner_->RunsTasksOnCurrentThread());
- http_server_properties_impl_->ClearAlternateProtocol(server);
+ http_server_properties_impl_->ClearAlternateProtocol(origin);
ScheduleUpdatePrefsOnNetworkThread();
}
« no previous file with comments | « net/http/http_server_properties_manager.h ('k') | net/http/http_server_properties_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698