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

Unified Diff: net/http/http_response_info.cc

Issue 2119623002: Add metrics to track HTTP/0.9 usage for main frames and subresources (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Response to comments Created 4 years, 6 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
Index: net/http/http_response_info.cc
diff --git a/net/http/http_response_info.cc b/net/http/http_response_info.cc
index b0c23e032880bc4afa0222bb70139e304466aa2f..1673c112f54ed57ee72bf76db67855fa4fe99698 100644
--- a/net/http/http_response_info.cc
+++ b/net/http/http_response_info.cc
@@ -419,8 +419,8 @@ std::string HttpResponseInfo::ConnectionInfoToString(
switch (connection_info) {
case CONNECTION_INFO_UNKNOWN:
return "unknown";
- case CONNECTION_INFO_HTTP1:
- return "http/1";
+ case CONNECTION_INFO_HTTP1_1:
+ return "http/1.1";
case CONNECTION_INFO_DEPRECATED_SPDY2:
NOTREACHED();
return "";
@@ -436,6 +436,10 @@ std::string HttpResponseInfo::ConnectionInfoToString(
return "h2";
case CONNECTION_INFO_QUIC1_SPDY3:
return "quic/1+spdy/3";
+ case CONNECTION_INFO_HTTP0_9:
+ return "http/0.9";
+ case CONNECTION_INFO_HTTP1_0:
+ return "http/1.0";
case NUM_OF_CONNECTION_INFOS:
break;
}

Powered by Google App Engine
This is Rietveld 408576698