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 24 matching lines...) Expand all Loading... |
35 // Maximum value for the enum. | 35 // Maximum value for the enum. |
36 ALTERNATE_PROTOCOL_USAGE_MAX, | 36 ALTERNATE_PROTOCOL_USAGE_MAX, |
37 }; | 37 }; |
38 | 38 |
39 // Log a histogram to reflect |usage|. | 39 // Log a histogram to reflect |usage|. |
40 NET_EXPORT void HistogramAlternateProtocolUsage(AlternateProtocolUsage usage); | 40 NET_EXPORT void HistogramAlternateProtocolUsage(AlternateProtocolUsage usage); |
41 | 41 |
42 enum BrokenAlternateProtocolLocation { | 42 enum BrokenAlternateProtocolLocation { |
43 BROKEN_ALTERNATE_PROTOCOL_LOCATION_HTTP_STREAM_FACTORY_IMPL_JOB = 0, | 43 BROKEN_ALTERNATE_PROTOCOL_LOCATION_HTTP_STREAM_FACTORY_IMPL_JOB = 0, |
44 BROKEN_ALTERNATE_PROTOCOL_LOCATION_QUIC_STREAM_FACTORY = 1, | 44 BROKEN_ALTERNATE_PROTOCOL_LOCATION_QUIC_STREAM_FACTORY = 1, |
| 45 BROKEN_ALTERNATE_PROTOCOL_LOCATION_HTTP_STREAM_FACTORY_IMPL_JOB_ALT = 2, |
| 46 BROKEN_ALTERNATE_PROTOCOL_LOCATION_HTTP_STREAM_FACTORY_IMPL_JOB_MAIN = 3, |
45 BROKEN_ALTERNATE_PROTOCOL_LOCATION_MAX, | 47 BROKEN_ALTERNATE_PROTOCOL_LOCATION_MAX, |
46 }; | 48 }; |
47 | 49 |
48 // Log a histogram to reflect |location|. | 50 // Log a histogram to reflect |location|. |
49 NET_EXPORT void HistogramBrokenAlternateProtocolLocation( | 51 NET_EXPORT void HistogramBrokenAlternateProtocolLocation( |
50 BrokenAlternateProtocolLocation location); | 52 BrokenAlternateProtocolLocation location); |
51 | 53 |
52 enum AlternateProtocol { | 54 enum AlternateProtocol { |
53 DEPRECATED_NPN_SPDY_2 = 0, | 55 DEPRECATED_NPN_SPDY_2 = 0, |
54 ALTERNATE_PROTOCOL_MINIMUM_VALID_VERSION = DEPRECATED_NPN_SPDY_2, | 56 ALTERNATE_PROTOCOL_MINIMUM_VALID_VERSION = DEPRECATED_NPN_SPDY_2, |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 | 197 |
196 virtual PipelineCapabilityMap GetPipelineCapabilityMap() const = 0; | 198 virtual PipelineCapabilityMap GetPipelineCapabilityMap() const = 0; |
197 | 199 |
198 private: | 200 private: |
199 DISALLOW_COPY_AND_ASSIGN(HttpServerProperties); | 201 DISALLOW_COPY_AND_ASSIGN(HttpServerProperties); |
200 }; | 202 }; |
201 | 203 |
202 } // namespace net | 204 } // namespace net |
203 | 205 |
204 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_H_ | 206 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_H_ |
OLD | NEW |