Index: net/http/http_server_properties.h |
diff --git a/net/http/http_server_properties.h b/net/http/http_server_properties.h |
index 467715d86c747032a197d53329d88f1928289644..d699d2a62f083961352198afb1b47d70aae07d6c 100644 |
--- a/net/http/http_server_properties.h |
+++ b/net/http/http_server_properties.h |
@@ -67,23 +67,12 @@ NET_EXPORT void HistogramBrokenAlternateProtocolLocation( |
enum AlternateProtocol { |
NPN_HTTP_2, |
- ALTERNATE_PROTOCOL_MINIMUM_VALID_VERSION = NPN_HTTP_2, |
Ryan Hamilton
2016/09/23 19:23:22
But, but, but... what if in 2025 we want to do ano
Bence
2016/09/23 20:05:18
https://www.google.com/search?q=yagni
|
QUIC, |
- ALTERNATE_PROTOCOL_MAXIMUM_VALID_VERSION = QUIC, |
UNINITIALIZED_ALTERNATE_PROTOCOL, |
}; |
-// Simply returns whether |protocol| is between |
-// ALTERNATE_PROTOCOL_MINIMUM_VALID_VERSION and |
-// ALTERNATE_PROTOCOL_MAXIMUM_VALID_VERSION (inclusive). |
NET_EXPORT bool IsAlternateProtocolValid(AlternateProtocol protocol); |
-enum AlternateProtocolSize { |
- NUM_VALID_ALTERNATE_PROTOCOLS = |
- ALTERNATE_PROTOCOL_MAXIMUM_VALID_VERSION - |
- ALTERNATE_PROTOCOL_MINIMUM_VALID_VERSION + 1, |
-}; |
- |
NET_EXPORT const char* AlternateProtocolToString(AlternateProtocol protocol); |
NET_EXPORT AlternateProtocol AlternateProtocolFromString( |
const std::string& str); |