summaryrefslogtreecommitdiffstats
path: root/net/http/http_transaction.h
diff options
context:
space:
mode:
authormmenke@chromium.org <mmenke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-15 21:33:25 +0000
committermmenke@chromium.org <mmenke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-15 21:33:25 +0000
commit3b23a2234d8ce8bd2302f59c15aa68f685ea3e18 (patch)
tree4dfb23f04618dd77155e3426d9465f3d76990a6e /net/http/http_transaction.h
parentc9a967c0e99871521024c9ed7707941dc5894026 (diff)
downloadchromium_src-3b23a2234d8ce8bd2302f59c15aa68f685ea3e18.zip
chromium_src-3b23a2234d8ce8bd2302f59c15aa68f685ea3e18.tar.gz
chromium_src-3b23a2234d8ce8bd2302f59c15aa68f685ea3e18.tar.bz2
net: Return LoadTiming information in the case of a cache hit.
If the request went over the wire before headers were returned, return information about the last over the wire request. Otherwise, set send times to be when the cache entry was opened, and receive_header_start to be when the headers were read. BUG=239842 Review URL: https://chromiumcodereview.appspot.com/14625012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@200356 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_transaction.h')
-rw-r--r--net/http/http_transaction.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/net/http/http_transaction.h b/net/http/http_transaction.h
index c162b01..c23bf93 100644
--- a/net/http/http_transaction.h
+++ b/net/http/http_transaction.h
@@ -113,9 +113,11 @@ class NET_EXPORT_PRIVATE HttpTransaction {
// zero will be returned. This does not include the request headers.
virtual UploadProgress GetUploadProgress() const = 0;
- // Populates all of load timing, except for request start times.
+ // Populates all of load timing, except for request start times and receive
+ // headers time.
// |load_timing_info| must have all null times when called. Returns false and
- // does not modify |load_timing_info| if not currently connected.
+ // does not modify |load_timing_info| if there's no timing information to
+ // provide.
virtual bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const = 0;
// Called when the priority of the parent job changes.