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

Unified Diff: net/http/http_response_info.cc

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/http/http_response_info.h ('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_response_info.cc
diff --git a/net/http/http_response_info.cc b/net/http/http_response_info.cc
index 8c9127b20566ad286bcfb1d194836af45fd0adb9..4328b7ae2b64b9ab5680f67dc9fed463aebc2f00 100644
--- a/net/http/http_response_info.cc
+++ b/net/http/http_response_info.cc
@@ -400,8 +400,6 @@ void HttpResponseInfo::Persist(base::Pickle* pickle,
HttpResponseInfo::ConnectionInfo HttpResponseInfo::ConnectionInfoFromNextProto(
NextProto next_proto) {
switch (next_proto) {
- case kProtoSPDY31:
- return CONNECTION_INFO_SPDY3;
case kProtoHTTP2:
return CONNECTION_INFO_HTTP2;
case kProtoQUIC1SPDY3:
@@ -427,14 +425,14 @@ std::string HttpResponseInfo::ConnectionInfoToString(
case CONNECTION_INFO_DEPRECATED_SPDY2:
NOTREACHED();
return "";
- case CONNECTION_INFO_SPDY3:
+ case CONNECTION_INFO_DEPRECATED_SPDY3:
return "spdy/3";
// Since ConnectionInfo is persisted to disk, deprecated values have to be
// handled. Note that h2-14 and h2-15 are essentially wire compatible with
// h2.
// Intentional fallthrough.
- case CONNECTION_INFO_HTTP2_14:
- case CONNECTION_INFO_HTTP2_15:
+ case CONNECTION_INFO_DEPRECATED_HTTP2_14:
+ case CONNECTION_INFO_DEPRECATED_HTTP2_15:
case CONNECTION_INFO_HTTP2:
return "h2";
case CONNECTION_INFO_QUIC1_SPDY3:
« no previous file with comments | « net/http/http_response_info.h ('k') | net/http/http_server_properties.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698