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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 | 52 |
53 // Log a histogram to reflect |usage|. | 53 // Log a histogram to reflect |usage|. |
54 NET_EXPORT void HistogramAlternateProtocolUsage(AlternateProtocolUsage usage, | 54 NET_EXPORT void HistogramAlternateProtocolUsage(AlternateProtocolUsage usage, |
55 bool proxy_server_used); | 55 bool proxy_server_used); |
56 | 56 |
57 enum BrokenAlternateProtocolLocation { | 57 enum BrokenAlternateProtocolLocation { |
58 BROKEN_ALTERNATE_PROTOCOL_LOCATION_HTTP_STREAM_FACTORY_IMPL_JOB = 0, | 58 BROKEN_ALTERNATE_PROTOCOL_LOCATION_HTTP_STREAM_FACTORY_IMPL_JOB = 0, |
59 BROKEN_ALTERNATE_PROTOCOL_LOCATION_QUIC_STREAM_FACTORY = 1, | 59 BROKEN_ALTERNATE_PROTOCOL_LOCATION_QUIC_STREAM_FACTORY = 1, |
60 BROKEN_ALTERNATE_PROTOCOL_LOCATION_HTTP_STREAM_FACTORY_IMPL_JOB_ALT = 2, | 60 BROKEN_ALTERNATE_PROTOCOL_LOCATION_HTTP_STREAM_FACTORY_IMPL_JOB_ALT = 2, |
61 BROKEN_ALTERNATE_PROTOCOL_LOCATION_HTTP_STREAM_FACTORY_IMPL_JOB_MAIN = 3, | 61 BROKEN_ALTERNATE_PROTOCOL_LOCATION_HTTP_STREAM_FACTORY_IMPL_JOB_MAIN = 3, |
| 62 BROKEN_ALTERNATE_PROTOCOL_LOCATION_QUIC_HTTP_STREAM = 4, |
62 BROKEN_ALTERNATE_PROTOCOL_LOCATION_MAX, | 63 BROKEN_ALTERNATE_PROTOCOL_LOCATION_MAX, |
63 }; | 64 }; |
64 | 65 |
65 // Log a histogram to reflect |location|. | 66 // Log a histogram to reflect |location|. |
66 NET_EXPORT void HistogramBrokenAlternateProtocolLocation( | 67 NET_EXPORT void HistogramBrokenAlternateProtocolLocation( |
67 BrokenAlternateProtocolLocation location); | 68 BrokenAlternateProtocolLocation location); |
68 | 69 |
69 NET_EXPORT bool IsAlternateProtocolValid(NextProto protocol); | 70 NET_EXPORT bool IsAlternateProtocolValid(NextProto protocol); |
70 | 71 |
71 // (protocol, host, port) triple as defined in | 72 // (protocol, host, port) triple as defined in |
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
328 // Returns whether HttpServerProperties is initialized. | 329 // Returns whether HttpServerProperties is initialized. |
329 virtual bool IsInitialized() const = 0; | 330 virtual bool IsInitialized() const = 0; |
330 | 331 |
331 private: | 332 private: |
332 DISALLOW_COPY_AND_ASSIGN(HttpServerProperties); | 333 DISALLOW_COPY_AND_ASSIGN(HttpServerProperties); |
333 }; | 334 }; |
334 | 335 |
335 } // namespace net | 336 } // namespace net |
336 | 337 |
337 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_H_ | 338 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_H_ |
OLD | NEW |