summaryrefslogtreecommitdiffstats
path: root/net/http/http_response_info.h
diff options
context:
space:
mode:
authormbelshe@google.com <mbelshe@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-11 21:34:46 +0000
committermbelshe@google.com <mbelshe@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-11 21:34:46 +0000
commit9fc38b3ac8e8c9cfad867a1177d5b295a7646b57 (patch)
treedb1f4d7ba7b87cf2f006f608448ba92ba596fe64 /net/http/http_response_info.h
parente1c16492b1113c01e7467eaa526a01db85bf6470 (diff)
downloadchromium_src-9fc38b3ac8e8c9cfad867a1177d5b295a7646b57.zip
chromium_src-9fc38b3ac8e8c9cfad867a1177d5b295a7646b57.tar.gz
chromium_src-9fc38b3ac8e8c9cfad867a1177d5b295a7646b57.tar.bz2
Enable JS detection of whether SPDY was used to load a web page.
Augments the loadTimes() API with a new field, "wasFetchedViaSpdy". BUG=31615 TEST=flip_network_transaction_unittest Review URL: http://codereview.chromium.org/518039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35943 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_response_info.h')
-rw-r--r--net/http/http_response_info.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/http/http_response_info.h b/net/http/http_response_info.h
index 432ad87..a3e0123f 100644
--- a/net/http/http_response_info.h
+++ b/net/http/http_response_info.h
@@ -31,6 +31,9 @@ class HttpResponseInfo {
// reloading previously visited pages (without going over the network).
bool was_cached;
+ // True if the request was fetched over a SPDY channel.
+ bool was_fetched_via_spdy;
+
// The time at which the request was made that resulted in this response.
// For cached responses, this is the last time the cache entry was validated.
base::Time request_time;