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

Side by Side Diff: net/http/http_server_properties.cc

Issue 377063002: Revert of Add a probability to Alternate-Protocol support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/http/http_server_properties.h" 5 #include "net/http/http_server_properties.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/metrics/histogram.h" 8 #include "base/metrics/histogram.h"
9 #include "base/strings/stringprintf.h" 9 #include "base/strings/stringprintf.h"
10 10
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 104
105 case kProtoUnknown: 105 case kProtoUnknown:
106 case kProtoHTTP11: 106 case kProtoHTTP11:
107 break; 107 break;
108 } 108 }
109 109
110 NOTREACHED() << "Invalid NextProto: " << next_proto; 110 NOTREACHED() << "Invalid NextProto: " << next_proto;
111 return UNINITIALIZED_ALTERNATE_PROTOCOL; 111 return UNINITIALIZED_ALTERNATE_PROTOCOL;
112 } 112 }
113 113
114 std::string AlternateProtocolInfo::ToString() const { 114 std::string PortAlternateProtocolPair::ToString() const {
115 return base::StringPrintf("%d:%s p=%f", port, 115 return base::StringPrintf("%d:%s", port,
116 AlternateProtocolToString(protocol), 116 AlternateProtocolToString(protocol));
117 probability);
118 } 117 }
119 118
120 } // namespace net 119 } // namespace net
OLDNEW
« 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