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

Unified Diff: net/http/http_server_properties.cc

Issue 665083009: ABANDONED Handle multiple AlternateProtocols for each HostPortPair. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Re: 18. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/http/http_server_properties.h ('k') | net/http/http_server_properties_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_server_properties.cc
diff --git a/net/http/http_server_properties.cc b/net/http/http_server_properties.cc
index 6b5f226cad0b185d3de64a58b61b024ad2456103..bdeb1bf0d20e9e580f463e963a0ca42c80cbac49 100644
--- a/net/http/http_server_properties.cc
+++ b/net/http/http_server_properties.cc
@@ -103,11 +103,21 @@ AlternateProtocol AlternateProtocolFromNextProto(NextProto next_proto) {
std::string AlternateProtocolInfo::ToString() const {
return base::StringPrintf("%d:%s p=%f%s", port,
- AlternateProtocolToString(protocol),
- probability,
+ AlternateProtocolToString(protocol), probability,
is_broken ? " (broken)" : "");
}
+std::string AlternateProtocolsToString(const AlternateProtocols& protocols) {
+ std::string output;
+ for (AlternateProtocols::const_iterator it = protocols.begin();
+ it != protocols.end(); ++it) {
+ if (!output.empty())
+ output.append("; ");
+ output.append(it->ToString());
+ }
+ return output;
+}
+
// static
void HttpServerProperties::ForceHTTP11(SSLConfig* ssl_config) {
ssl_config->next_protos.clear();
« no previous file with comments | « net/http/http_server_properties.h ('k') | net/http/http_server_properties_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698