diff options
author | jar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-13 18:06:03 +0000 |
---|---|---|
committer | jar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-13 18:06:03 +0000 |
commit | 87a1a958cd1a99a57bb28d242e244411a5f39cfa (patch) | |
tree | 04e97186d459fd2430adc8a7b3cd1e7cf5120f66 /net/http/http_response_info.h | |
parent | 5cbb127e6b67a646b98a460faf89740f29b91403 (diff) | |
download | chromium_src-87a1a958cd1a99a57bb28d242e244411a5f39cfa.zip chromium_src-87a1a958cd1a99a57bb28d242e244411a5f39cfa.tar.gz chromium_src-87a1a958cd1a99a57bb28d242e244411a5f39cfa.tar.bz2 |
Correct latency histograms for SDCH encoding
Add a boolean to indicate if the request_time_ was
set via a call to Now(), vs unpickling from the
cache, so that cached results can be excluded from
latency measurements.
bug=1561947
r=darin,rvargas
Review URL: http://codereview.chromium.org/17371
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7942 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_response_info.h')
-rw-r--r-- | net/http/http_response_info.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/net/http/http_response_info.h b/net/http/http_response_info.h index 80defef..5563ada 100644 --- a/net/http/http_response_info.h +++ b/net/http/http_response_info.h @@ -15,6 +15,15 @@ namespace net { class HttpResponseInfo { public: + // The following is only defined if the request_time memmber is set. + // If this response was resurrected from cache, then this bool is set, and + // request_time may corresponds to a time "far" in the past. Note that + // stale content (perhaps un-cacheable) may be fetched from cache subject to + // the load flags specified on the request info. For example, this is done + // when a user presses the back button to re-render pages, or at startup, when + // reloading previously visited pages (without going over the network). + bool was_cached; + // The time at which the request was made that resulted in this response. // For cached responses, this time could be "far" in the past. base::Time request_time; |