summaryrefslogtreecommitdiffstats
path: root/net/url_request/url_request.cc
diff options
context:
space:
mode:
authorjar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-13 18:06:03 +0000
committerjar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-13 18:06:03 +0000
commit87a1a958cd1a99a57bb28d242e244411a5f39cfa (patch)
tree04e97186d459fd2430adc8a7b3cd1e7cf5120f66 /net/url_request/url_request.cc
parent5cbb127e6b67a646b98a460faf89740f29b91403 (diff)
downloadchromium_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/url_request/url_request.cc')
-rw-r--r--net/url_request/url_request.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/net/url_request/url_request.cc b/net/url_request/url_request.cc
index 79ea708..87facba 100644
--- a/net/url_request/url_request.cc
+++ b/net/url_request/url_request.cc
@@ -28,7 +28,7 @@ using std::string;
using std::wstring;
// Max number of http redirects to follow. Same number as gecko.
-const static int kMaxRedirects = 20;
+static const int kMaxRedirects = 20;
static URLRequestJobManager* GetJobManager() {
return Singleton<URLRequestJobManager>::get();
@@ -218,6 +218,7 @@ void URLRequest::Start() {
is_pending_ = true;
response_info_.request_time = Time::Now();
+ response_info_.was_cached = false;
// Don't allow errors to be sent from within Start().
// TODO(brettw) this may cause NotifyDone to be sent synchronously,
@@ -307,7 +308,7 @@ std::string URLRequest::StripPostSpecificHeaders(const std::string& headers) {
std::string stripped_headers;
net::HttpUtil::HeadersIterator it(headers.begin(), headers.end(), "\r\n");
-
+
while (it.GetNext()) {
bool is_post_specific = false;
for (size_t i = 0; i < ARRAYSIZE_UNSAFE(kPostHeaders); ++i) {