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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 BROKEN_ALTERNATE_PROTOCOL_LOCATION_HTTP_STREAM_FACTORY_IMPL_JOB_ALT = 2, | 59 BROKEN_ALTERNATE_PROTOCOL_LOCATION_HTTP_STREAM_FACTORY_IMPL_JOB_ALT = 2, |
60 BROKEN_ALTERNATE_PROTOCOL_LOCATION_HTTP_STREAM_FACTORY_IMPL_JOB_MAIN = 3, | 60 BROKEN_ALTERNATE_PROTOCOL_LOCATION_HTTP_STREAM_FACTORY_IMPL_JOB_MAIN = 3, |
61 BROKEN_ALTERNATE_PROTOCOL_LOCATION_MAX, | 61 BROKEN_ALTERNATE_PROTOCOL_LOCATION_MAX, |
62 }; | 62 }; |
63 | 63 |
64 // Log a histogram to reflect |location|. | 64 // Log a histogram to reflect |location|. |
65 NET_EXPORT void HistogramBrokenAlternateProtocolLocation( | 65 NET_EXPORT void HistogramBrokenAlternateProtocolLocation( |
66 BrokenAlternateProtocolLocation location); | 66 BrokenAlternateProtocolLocation location); |
67 | 67 |
68 enum AlternateProtocol { | 68 enum AlternateProtocol { |
69 NPN_SPDY_3_1, | |
70 ALTERNATE_PROTOCOL_MINIMUM_VALID_VERSION = NPN_SPDY_3_1, | |
71 NPN_SPDY_MINIMUM_VERSION = NPN_SPDY_3_1, | |
72 NPN_HTTP_2, | 69 NPN_HTTP_2, |
73 NPN_SPDY_MAXIMUM_VERSION = NPN_HTTP_2, | 70 ALTERNATE_PROTOCOL_MINIMUM_VALID_VERSION = NPN_HTTP_2, |
74 QUIC, | 71 QUIC, |
75 ALTERNATE_PROTOCOL_MAXIMUM_VALID_VERSION = QUIC, | 72 ALTERNATE_PROTOCOL_MAXIMUM_VALID_VERSION = QUIC, |
76 UNINITIALIZED_ALTERNATE_PROTOCOL, | 73 UNINITIALIZED_ALTERNATE_PROTOCOL, |
77 }; | 74 }; |
78 | 75 |
79 // Simply returns whether |protocol| is between | 76 // Simply returns whether |protocol| is between |
80 // ALTERNATE_PROTOCOL_MINIMUM_VALID_VERSION and | 77 // ALTERNATE_PROTOCOL_MINIMUM_VALID_VERSION and |
81 // ALTERNATE_PROTOCOL_MAXIMUM_VALID_VERSION (inclusive). | 78 // ALTERNATE_PROTOCOL_MAXIMUM_VALID_VERSION (inclusive). |
82 NET_EXPORT bool IsAlternateProtocolValid(AlternateProtocol protocol); | 79 NET_EXPORT bool IsAlternateProtocolValid(AlternateProtocol protocol); |
83 | 80 |
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
373 virtual void SetMaxServerConfigsStoredInProperties( | 370 virtual void SetMaxServerConfigsStoredInProperties( |
374 size_t max_server_configs_stored_in_properties) = 0; | 371 size_t max_server_configs_stored_in_properties) = 0; |
375 | 372 |
376 private: | 373 private: |
377 DISALLOW_COPY_AND_ASSIGN(HttpServerProperties); | 374 DISALLOW_COPY_AND_ASSIGN(HttpServerProperties); |
378 }; | 375 }; |
379 | 376 |
380 } // namespace net | 377 } // namespace net |
381 | 378 |
382 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_H_ | 379 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_H_ |
OLD | NEW |