summaryrefslogtreecommitdiffstats
path: root/net/http/http_cache_transaction.h
diff options
context:
space:
mode:
authorrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-22 17:41:09 +0000
committerrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-22 17:41:09 +0000
commit4a62071745a5f8dd1b18bb94d9d600a79637c046 (patch)
treeffa6d43c247f6d7384cc8d78b42aa311e45094c5 /net/http/http_cache_transaction.h
parenta8e0a2d93957cd19766e2de65f9830cc2df2e735 (diff)
downloadchromium_src-4a62071745a5f8dd1b18bb94d9d600a79637c046.zip
chromium_src-4a62071745a5f8dd1b18bb94d9d600a79637c046.tar.gz
chromium_src-4a62071745a5f8dd1b18bb94d9d600a79637c046.tar.bz2
Http Cache: Keep track of whether we are doing byte range
requests because the caller is asking for a range, and save 200 responses when we ask for a range but we don't have a sparse entry. BUG=81820 TEST=net_unittests Review URL: http://codereview.chromium.org/7468017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@93669 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_cache_transaction.h')
-rw-r--r--net/http/http_cache_transaction.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/http/http_cache_transaction.h b/net/http/http_cache_transaction.h
index d2586ab..31dec94 100644
--- a/net/http/http_cache_transaction.h
+++ b/net/http/http_cache_transaction.h
@@ -239,7 +239,7 @@ class HttpCache::Transaction : public HttpTransaction {
// Validates the entry headers against the requested range and continues with
// the validation of the rest of the entry. Returns a network error code.
- int ValidateEntryHeadersAndContinue(bool byte_range_requested);
+ int ValidateEntryHeadersAndContinue();
// Called to start requests which were given an "if-modified-since" or
// "if-none-match" validation header by the caller (NOT when the request was
@@ -347,6 +347,7 @@ class HttpCache::Transaction : public HttpTransaction {
bool invalid_range_; // We may bypass the cache for this request.
bool truncated_; // We don't have all the response data.
bool is_sparse_; // The data is stored in sparse byte ranges.
+ bool range_requested_; // The user requested a byte range.
bool handling_206_; // We must deal with this 206 response.
bool cache_pending_; // We are waiting for the HttpCache.
bool done_reading_;