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

Unified Diff: net/http/http_server_properties.cc

Issue 339663010: Add a probability to Alternate-Protocol support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Better plumbing Created 6 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_server_properties.cc
diff --git a/net/http/http_server_properties.cc b/net/http/http_server_properties.cc
index 19b334c1fb3b737820c0d8aef1cc56a99f566815..023882bc92872a8fffe4f835887157095c47db4e 100644
--- a/net/http/http_server_properties.cc
+++ b/net/http/http_server_properties.cc
@@ -111,9 +111,10 @@ AlternateProtocol AlternateProtocolFromNextProto(NextProto next_proto) {
return UNINITIALIZED_ALTERNATE_PROTOCOL;
}
-std::string PortAlternateProtocolPair::ToString() const {
- return base::StringPrintf("%d:%s", port,
- AlternateProtocolToString(protocol));
+std::string AlternateProtocolInfo::ToString() const {
+ return base::StringPrintf("%d:%s p=%f", port,
+ AlternateProtocolToString(protocol),
+ probability);
}
} // namespace net

Powered by Google App Engine
This is Rietveld 408576698