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

Unified Diff: net/http/http_stream_factory.cc

Issue 1216703002: Implement multiple alternative services per origin. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
Index: net/http/http_stream_factory.cc
diff --git a/net/http/http_stream_factory.cc b/net/http/http_stream_factory.cc
index e3d35b74abe641227b91ef9c115939a14627e300..ee7053676321b89418ec6defae1b7f1e554fab57 100644
--- a/net/http/http_stream_factory.cc
+++ b/net/http/http_stream_factory.cc
@@ -84,7 +84,7 @@ void HttpStreamFactory::ProcessAlternateProtocol(
}
if (!is_valid || protocol == UNINITIALIZED_ALTERNATE_PROTOCOL) {
- http_server_properties->ClearAlternativeService(http_host_port_pair);
+ http_server_properties->ClearAlternativeServices(http_host_port_pair);
return;
}
@@ -93,7 +93,8 @@ void HttpStreamFactory::ProcessAlternateProtocol(
if (mapping_rules)
mapping_rules->RewriteHost(&host_port);
- http_server_properties->SetAlternativeService(
+ http_server_properties->ClearAlternativeServices(host_port);
+ http_server_properties->AddAlternativeService(
host_port, AlternativeService(protocol, "", static_cast<uint16>(port)),
probability);
}

Powered by Google App Engine
This is Rietveld 408576698