diff options
author | mbelshe@google.com <mbelshe@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-11 21:34:46 +0000 |
---|---|---|
committer | mbelshe@google.com <mbelshe@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-11 21:34:46 +0000 |
commit | 9fc38b3ac8e8c9cfad867a1177d5b295a7646b57 (patch) | |
tree | db1f4d7ba7b87cf2f006f608448ba92ba596fe64 /net/url_request | |
parent | e1c16492b1113c01e7467eaa526a01db85bf6470 (diff) | |
download | chromium_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/url_request')
-rw-r--r-- | net/url_request/url_request.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/net/url_request/url_request.h b/net/url_request/url_request.h index 1b73b95..e586e28 100644 --- a/net/url_request/url_request.h +++ b/net/url_request/url_request.h @@ -362,6 +362,11 @@ class URLRequest { // Indicate if this response was fetched from disk cache. bool was_cached() const { return response_info_.was_cached; } + // Returns true if the URLRequest was delivered with SPDY. + bool was_fetched_via_spdy() const { + return response_info_.was_fetched_via_spdy; + } + // Get all response headers, as a HttpResponseHeaders object. See comments // in HttpResponseHeaders class as to the format of the data. net::HttpResponseHeaders* response_headers() const; |