Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(625)

Unified Diff: net/http/http_server_properties.h

Issue 2362233002: Remove HttpNetworkSession::enabled_protocols_. (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/http/http_network_session.cc ('k') | net/http/http_server_properties.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « net/http/http_network_session.cc ('k') | net/http/http_server_properties.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698