summaryrefslogtreecommitdiffstats
path: root/net/http/http_server_properties.cc
diff options
context:
space:
mode:
authorrch@chromium.org <rch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-07-08 18:59:31 +0000
committerrch@chromium.org <rch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-07-08 18:59:31 +0000
commit2139cebc2a5ac7b1c6422f477ca809b2c3223d64 (patch)
treecf350c54925233492eed17359439cc905b6cba3a /net/http/http_server_properties.cc
parentdb248c54114004e339c9e1b42d2f2486addd19fc (diff)
downloadchromium_src-2139cebc2a5ac7b1c6422f477ca809b2c3223d64.zip
chromium_src-2139cebc2a5ac7b1c6422f477ca809b2c3223d64.tar.gz
chromium_src-2139cebc2a5ac7b1c6422f477ca809b2c3223d64.tar.bz2
Add a probability to Alternate-Protocol support. Can be enabled either via a field trial or a command line flag.
Review URL: https://codereview.chromium.org/339663010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@281777 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_server_properties.cc')
-rw-r--r--net/http/http_server_properties.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/net/http/http_server_properties.cc b/net/http/http_server_properties.cc
index 1a9bfb6..abc5cb1 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