diff options
author | rch@chromium.org <rch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-08 18:59:31 +0000 |
---|---|---|
committer | rch@chromium.org <rch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-08 18:59:31 +0000 |
commit | 2139cebc2a5ac7b1c6422f477ca809b2c3223d64 (patch) | |
tree | cf350c54925233492eed17359439cc905b6cba3a /net/http/http_server_properties.cc | |
parent | db248c54114004e339c9e1b42d2f2486addd19fc (diff) | |
download | chromium_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.cc | 7 |
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 |