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

Unified Diff: net/http/http_response_info.h

Issue 1096783005: QUIC - Collect performance stats for QUIC vs non-QUIC when google (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix comments for PatchSet 3 Created 5 years, 8 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/base/net_util_unittest.cc ('k') | net/url_request/url_request_http_job.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_response_info.h
diff --git a/net/http/http_response_info.h b/net/http/http_response_info.h
index 5b38d8628bb183e472e9d5d40f75d2a1a595a91b..b83bdbe20cefacea5af8554d82c713ea3a4f0edf 100644
--- a/net/http/http_response_info.h
+++ b/net/http/http_response_info.h
@@ -59,6 +59,11 @@ class NET_EXPORT HttpResponseInfo {
bool skip_transient_headers,
bool response_truncated) const;
+ // Whether QUIC is used or not.
+ bool DidUseQuic() const {
+ return connection_info == CONNECTION_INFO_QUIC1_SPDY3;
+ }
+
// The following is only defined if the request_time member is set.
// If this resource was found in the cache, then this bool is set, and
// request_time may corresponds to a time "far" in the past. Note that
« no previous file with comments | « net/base/net_util_unittest.cc ('k') | net/url_request/url_request_http_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698