diff options
author | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-25 22:05:17 +0000 |
---|---|---|
committer | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-25 22:05:17 +0000 |
commit | ae5670e39c35fea528c50e95eee5a3de1cc0d192 (patch) | |
tree | 5d21e7039bc1946e2f2ecd4c98f79d0f48901082 /net/http/http_cache_transaction.h | |
parent | b8ecd144b5960978b37f2419215b9119239546b0 (diff) | |
download | chromium_src-ae5670e39c35fea528c50e95eee5a3de1cc0d192.zip chromium_src-ae5670e39c35fea528c50e95eee5a3de1cc0d192.tar.gz chromium_src-ae5670e39c35fea528c50e95eee5a3de1cc0d192.tar.bz2 |
Http cache: Add code to restart a network request when the
server doesn't revalidate a partially stored entry, in other
words, after we issued a conditional byte range request.
BUG=27276
TEST=unittests
Review URL: http://codereview.chromium.org/434052
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33133 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_cache_transaction.h')
-rw-r--r-- | net/http/http_cache_transaction.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/net/http/http_cache_transaction.h b/net/http/http_cache_transaction.h index d58105f..69b785c 100644 --- a/net/http/http_cache_transaction.h +++ b/net/http/http_cache_transaction.h @@ -156,8 +156,11 @@ class HttpCache::Transaction : public HttpTransaction { // copy is valid). Returns true if able to make the request conditional. bool ConditionalizeRequest(); - // Makes sure that a 206 response is expected. Returns a network error code. - bool ValidatePartialResponse(const HttpResponseHeaders* headers); + // Makes sure that a 206 response is expected. Returns true on success. + // On success, |partial_content| will be set to true if we are processing a + // partial entry. + bool ValidatePartialResponse(const HttpResponseHeaders* headers, + bool* partial_content); // Handles a response validation error by bypassing the cache. void IgnoreRangeRequest(); |