| 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 BrokenAlternateProtocolLocation location); | 56 BrokenAlternateProtocolLocation location); |
| 57 | 57 |
| 58 enum AlternateProtocol { | 58 enum AlternateProtocol { |
| 59 DEPRECATED_NPN_SPDY_2 = 0, | 59 DEPRECATED_NPN_SPDY_2 = 0, |
| 60 ALTERNATE_PROTOCOL_MINIMUM_VALID_VERSION = DEPRECATED_NPN_SPDY_2, | 60 ALTERNATE_PROTOCOL_MINIMUM_VALID_VERSION = DEPRECATED_NPN_SPDY_2, |
| 61 NPN_SPDY_MINIMUM_VERSION = DEPRECATED_NPN_SPDY_2, | 61 NPN_SPDY_MINIMUM_VERSION = DEPRECATED_NPN_SPDY_2, |
| 62 NPN_SPDY_3, | 62 NPN_SPDY_3, |
| 63 NPN_SPDY_3_1, | 63 NPN_SPDY_3_1, |
| 64 NPN_SPDY_4_14, // HTTP/2 draft-14 | 64 NPN_SPDY_4_14, // HTTP/2 draft-14 |
| 65 NPN_SPDY_4_15, // HTTP/2 draft-15 | 65 NPN_SPDY_4_15, // HTTP/2 draft-15 |
| 66 NPN_SPDY_MAXIMUM_VERSION = NPN_SPDY_4_15, | 66 NPN_SPDY_4, // HTTP/2 |
| 67 NPN_SPDY_MAXIMUM_VERSION = NPN_SPDY_4, |
| 67 QUIC, | 68 QUIC, |
| 68 ALTERNATE_PROTOCOL_MAXIMUM_VALID_VERSION = QUIC, | 69 ALTERNATE_PROTOCOL_MAXIMUM_VALID_VERSION = QUIC, |
| 69 UNINITIALIZED_ALTERNATE_PROTOCOL, | 70 UNINITIALIZED_ALTERNATE_PROTOCOL, |
| 70 }; | 71 }; |
| 71 | 72 |
| 72 // Simply returns whether |protocol| is between | 73 // Simply returns whether |protocol| is between |
| 73 // ALTERNATE_PROTOCOL_MINIMUM_VALID_VERSION and | 74 // ALTERNATE_PROTOCOL_MINIMUM_VALID_VERSION and |
| 74 // ALTERNATE_PROTOCOL_MAXIMUM_VALID_VERSION (inclusive). | 75 // ALTERNATE_PROTOCOL_MAXIMUM_VALID_VERSION (inclusive). |
| 75 NET_EXPORT bool IsAlternateProtocolValid(AlternateProtocol protocol); | 76 NET_EXPORT bool IsAlternateProtocolValid(AlternateProtocol protocol); |
| 76 | 77 |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 260 | 261 |
| 261 virtual const ServerNetworkStatsMap& server_network_stats_map() const = 0; | 262 virtual const ServerNetworkStatsMap& server_network_stats_map() const = 0; |
| 262 | 263 |
| 263 private: | 264 private: |
| 264 DISALLOW_COPY_AND_ASSIGN(HttpServerProperties); | 265 DISALLOW_COPY_AND_ASSIGN(HttpServerProperties); |
| 265 }; | 266 }; |
| 266 | 267 |
| 267 } // namespace net | 268 } // namespace net |
| 268 | 269 |
| 269 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_H_ | 270 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_H_ |
| OLD | NEW |