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

Unified Diff: net/socket/next_proto.h

Issue 2195273003: Deprecate SPDY/3.1 and draft HTTP/2 enum values. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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/net.gypi ('k') | net/socket/next_proto.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/socket/next_proto.h
diff --git a/net/socket/next_proto.h b/net/socket/next_proto.h
index 8b6c394e45d448504a0a2313826a3f927a00bb64..8f90b44b5547b8036e6709dbab1b7c9a6e1b4166 100644
--- a/net/socket/next_proto.h
+++ b/net/socket/next_proto.h
@@ -22,30 +22,18 @@ const int kProtoSPDYHistogramOffset = 100;
enum NextProto {
kProtoUnknown = 0,
kProtoHTTP11 = 1,
- kProtoMinimumVersion = kProtoHTTP11,
-
- kProtoSPDY31 = 102,
- kProtoSPDYMinimumVersion = kProtoSPDY31,
+ // kProtoSPDY31 = 102,
// kProtoHTTP2_14 = 103, // HTTP/2 draft-14
// kProtoHTTP2_15 = 104, // HTTP/2 draft-15
// kProtoHTTP2_16 = 105, // HTTP/2 draft-16
// kProtoHTTP2_17 = 106, // HTTP/2 draft-17
kProtoHTTP2 = 107, // HTTP/2, see https://tools.ietf.org/html/rfc7540.
- kProtoSPDYMaximumVersion = kProtoHTTP2,
-
kProtoQUIC1SPDY3 = 200,
-
- kProtoMaximumVersion = kProtoQUIC1SPDY3,
};
// List of protocols to use for NPN, used for configuring HttpNetworkSessions.
typedef std::vector<NextProto> NextProtoVector;
-// Convenience functions to create NextProtoVector.
-
-// Returns true if |next_proto| is a version of SPDY or HTTP/2.
-bool NextProtoIsSPDY(NextProto next_proto);
-
} // namespace net
#endif // NET_SOCKET_NEXT_PROTO_H_
« no previous file with comments | « net/net.gypi ('k') | net/socket/next_proto.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698