diff options
author | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-24 17:44:57 +0000 |
---|---|---|
committer | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-24 17:44:57 +0000 |
commit | 67fe45c45a76ab5f984ca6dfeb98945a668b97ae (patch) | |
tree | 95846805a9bf5d3480cb067de41219a69e99b2eb /net/http/http_cache.cc | |
parent | b9eeba6713325a0fc67d6aeabc8475b5a2b37e0f (diff) | |
download | chromium_src-67fe45c45a76ab5f984ca6dfeb98945a668b97ae.zip chromium_src-67fe45c45a76ab5f984ca6dfeb98945a668b97ae.tar.gz chromium_src-67fe45c45a76ab5f984ca6dfeb98945a668b97ae.tar.bz2 |
Http cache: Add support for ranges with an unknown start or end.
BUG=12258
TEST=unittest
Review URL: http://codereview.chromium.org/147042
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19142 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_cache.cc')
-rw-r--r-- | net/http/http_cache.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/net/http/http_cache.cc b/net/http/http_cache.cc index 18d928f..d56d1db 100644 --- a/net/http/http_cache.cc +++ b/net/http/http_cache.cc @@ -786,13 +786,17 @@ int HttpCache::Transaction::BeginPartialCacheValidation() { NOTREACHED(); } - partial_->UpdateFromStoredHeaders(response_.headers); + if (!partial_->UpdateFromStoredHeaders(response_.headers)) { + // TODO(rvargas): Handle this error. + NOTREACHED(); + } return ContinuePartialCacheValidation(); } int HttpCache::Transaction::ContinuePartialCacheValidation() { DCHECK(mode_ == READ_WRITE); + // TODO(rvargas): Avoid re-validation of each cached piece. int rv = partial_->PrepareCacheValidation(entry_->disk_entry, &custom_request_->extra_headers); |