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 30 matching lines...) Expand all Loading... |
41 }; | 41 }; |
42 | 42 |
43 // Log a histogram to reflect |usage|. | 43 // Log a histogram to reflect |usage|. |
44 NET_EXPORT void HistogramAlternateProtocolUsage(AlternateProtocolUsage usage); | 44 NET_EXPORT void HistogramAlternateProtocolUsage(AlternateProtocolUsage usage); |
45 | 45 |
46 enum BrokenAlternateProtocolLocation { | 46 enum BrokenAlternateProtocolLocation { |
47 BROKEN_ALTERNATE_PROTOCOL_LOCATION_HTTP_STREAM_FACTORY_IMPL_JOB = 0, | 47 BROKEN_ALTERNATE_PROTOCOL_LOCATION_HTTP_STREAM_FACTORY_IMPL_JOB = 0, |
48 BROKEN_ALTERNATE_PROTOCOL_LOCATION_QUIC_STREAM_FACTORY = 1, | 48 BROKEN_ALTERNATE_PROTOCOL_LOCATION_QUIC_STREAM_FACTORY = 1, |
49 BROKEN_ALTERNATE_PROTOCOL_LOCATION_HTTP_STREAM_FACTORY_IMPL_JOB_ALT = 2, | 49 BROKEN_ALTERNATE_PROTOCOL_LOCATION_HTTP_STREAM_FACTORY_IMPL_JOB_ALT = 2, |
50 BROKEN_ALTERNATE_PROTOCOL_LOCATION_HTTP_STREAM_FACTORY_IMPL_JOB_MAIN = 3, | 50 BROKEN_ALTERNATE_PROTOCOL_LOCATION_HTTP_STREAM_FACTORY_IMPL_JOB_MAIN = 3, |
| 51 BROKEN_ALTERNATE_PROTOCOL_LOCATION_QUIC_STREAM_FACTORY_BAD_PACKET_LOSS = 4, |
51 BROKEN_ALTERNATE_PROTOCOL_LOCATION_MAX, | 52 BROKEN_ALTERNATE_PROTOCOL_LOCATION_MAX, |
52 }; | 53 }; |
53 | 54 |
54 // Log a histogram to reflect |location|. | 55 // Log a histogram to reflect |location|. |
55 NET_EXPORT void HistogramBrokenAlternateProtocolLocation( | 56 NET_EXPORT void HistogramBrokenAlternateProtocolLocation( |
56 BrokenAlternateProtocolLocation location); | 57 BrokenAlternateProtocolLocation location); |
57 | 58 |
58 enum AlternateProtocol { | 59 enum AlternateProtocol { |
59 DEPRECATED_NPN_SPDY_2 = 0, | 60 DEPRECATED_NPN_SPDY_2 = 0, |
60 ALTERNATE_PROTOCOL_MINIMUM_VALID_VERSION = DEPRECATED_NPN_SPDY_2, | 61 ALTERNATE_PROTOCOL_MINIMUM_VALID_VERSION = DEPRECATED_NPN_SPDY_2, |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
283 | 284 |
284 virtual const ServerNetworkStatsMap& server_network_stats_map() const = 0; | 285 virtual const ServerNetworkStatsMap& server_network_stats_map() const = 0; |
285 | 286 |
286 private: | 287 private: |
287 DISALLOW_COPY_AND_ASSIGN(HttpServerProperties); | 288 DISALLOW_COPY_AND_ASSIGN(HttpServerProperties); |
288 }; | 289 }; |
289 | 290 |
290 } // namespace net | 291 } // namespace net |
291 | 292 |
292 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_H_ | 293 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_H_ |
OLD | NEW |