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

Unified Diff: net/http/http_response_info.cc

Issue 987123002: Advertise HTTP/2 support. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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.h » ('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 b5b94c48e2dfdc47242f948a3316bc57d03059d9..7626b07a7ded86b4a963ea3036df6801568d7be7 100644
--- a/net/http/http_response_info.cc
+++ b/net/http/http_response_info.cc
@@ -382,6 +382,8 @@ HttpResponseInfo::ConnectionInfo HttpResponseInfo::ConnectionInfoFromNextProto(
return CONNECTION_INFO_HTTP2_14;
case kProtoSPDY4_15:
return CONNECTION_INFO_HTTP2_15;
+ case kProtoSPDY4:
+ return CONNECTION_INFO_HTTP2;
case kProtoQUIC1SPDY3:
return CONNECTION_INFO_QUIC1_SPDY3;
@@ -413,6 +415,8 @@ std::string HttpResponseInfo::ConnectionInfoToString(
case CONNECTION_INFO_HTTP2_15:
// This is the HTTP/2 draft-15 identifier.
return "h2-15";
+ case CONNECTION_INFO_HTTP2:
+ return "h2";
case CONNECTION_INFO_QUIC1_SPDY3:
return "quic/1+spdy/3";
case NUM_OF_CONNECTION_INFOS:
« no previous file with comments | « net/http/http_response_info.h ('k') | net/http/http_server_properties.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698