OLD | NEW |
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 #ifndef NET_HTTP_HTTP_SERVER_PROPERTIES_H_ | 5 #ifndef NET_HTTP_HTTP_SERVER_PROPERTIES_H_ |
6 #define NET_HTTP_HTTP_SERVER_PROPERTIES_H_ | 6 #define NET_HTTP_HTTP_SERVER_PROPERTIES_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 ALTERNATE_PROTOCOL_MINIMUM_VALID_VERSION + 1, | 79 ALTERNATE_PROTOCOL_MINIMUM_VALID_VERSION + 1, |
80 }; | 80 }; |
81 | 81 |
82 NET_EXPORT const char* AlternateProtocolToString(AlternateProtocol protocol); | 82 NET_EXPORT const char* AlternateProtocolToString(AlternateProtocol protocol); |
83 NET_EXPORT AlternateProtocol AlternateProtocolFromString( | 83 NET_EXPORT AlternateProtocol AlternateProtocolFromString( |
84 const std::string& str); | 84 const std::string& str); |
85 NET_EXPORT_PRIVATE AlternateProtocol AlternateProtocolFromNextProto( | 85 NET_EXPORT_PRIVATE AlternateProtocol AlternateProtocolFromNextProto( |
86 NextProto next_proto); | 86 NextProto next_proto); |
87 | 87 |
88 struct NET_EXPORT AlternateProtocolInfo { | 88 struct NET_EXPORT AlternateProtocolInfo { |
| 89 AlternateProtocolInfo() |
| 90 : port(0), |
| 91 protocol(UNINITIALIZED_ALTERNATE_PROTOCOL), |
| 92 probability(0), |
| 93 is_broken(false) {} |
| 94 |
89 AlternateProtocolInfo(uint16 port, | 95 AlternateProtocolInfo(uint16 port, |
90 AlternateProtocol protocol, | 96 AlternateProtocol protocol, |
91 double probability) | 97 double probability) |
92 : port(port), | 98 : port(port), |
93 protocol(protocol), | 99 protocol(protocol), |
94 probability(probability), | 100 probability(probability), |
95 is_broken(false) {} | 101 is_broken(false) {} |
96 | 102 |
97 AlternateProtocolInfo(uint16 port, | 103 AlternateProtocolInfo(uint16 port, |
98 AlternateProtocol protocol, | 104 AlternateProtocol protocol, |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 | 266 |
261 virtual const ServerNetworkStatsMap& server_network_stats_map() const = 0; | 267 virtual const ServerNetworkStatsMap& server_network_stats_map() const = 0; |
262 | 268 |
263 private: | 269 private: |
264 DISALLOW_COPY_AND_ASSIGN(HttpServerProperties); | 270 DISALLOW_COPY_AND_ASSIGN(HttpServerProperties); |
265 }; | 271 }; |
266 | 272 |
267 } // namespace net | 273 } // namespace net |
268 | 274 |
269 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_H_ | 275 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_H_ |
OLD | NEW |