diff options
author | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-12 17:35:50 +0000 |
---|---|---|
committer | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-12 17:35:50 +0000 |
commit | 8bf26f49ab4b5fd24fe788e4d64c8294280a118d (patch) | |
tree | 801038a21ca17d04400cbafef4b9b50314d400a9 /net/http/http_response_headers.h | |
parent | 906a74512ed2bddab37ccab2730a17244b799d5b (diff) | |
download | chromium_src-8bf26f49ab4b5fd24fe788e4d64c8294280a118d.zip chromium_src-8bf26f49ab4b5fd24fe788e4d64c8294280a118d.tar.gz chromium_src-8bf26f49ab4b5fd24fe788e4d64c8294280a118d.tar.bz2 |
Http Cache: First pass of byte-range requests support.
This is the first pass to implement support for range
requests and the asociated sparse cache entry.
It is disabled by default, and requires ENABLE_RANGE_SUPPORT
to be defined in order to activate the code: all the code
is compiled in, but Start() bypasses the cache for range
requests, and OnNetworkInfoAvailable ignores 206.
Big parts are still not implemented. Most notably we are
not modifying the response headers that we send to the
user, so the content-range and content-length info
are not correct.
BUG=12258
TEST=Unit tests.
Review URL: http://codereview.chromium.org/118345
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18289 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_response_headers.h')
-rw-r--r-- | net/http/http_response_headers.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/http/http_response_headers.h b/net/http/http_response_headers.h index 830c09c..1989d07 100644 --- a/net/http/http_response_headers.h +++ b/net/http/http_response_headers.h @@ -52,6 +52,7 @@ class HttpResponseHeaders : static const PersistOptions PERSIST_SANS_CHALLENGES = 1 << 1; static const PersistOptions PERSIST_SANS_HOP_BY_HOP = 1 << 2; static const PersistOptions PERSIST_SANS_NON_CACHEABLE = 1 << 3; + static const PersistOptions PERSIST_SANS_RANGES = 1 << 4; // Appends a representation of this object to the given pickle. // The options argument can be a combination of PersistOptions. @@ -276,6 +277,9 @@ class HttpResponseHeaders : // Adds the set of cookie response headers. static void AddCookieHeaders(HeaderSet* header_names); + // Adds the set of content range response headers. + static void AddHopContentRangeHeaders(HeaderSet* header_names); + // The members of this structure point into raw_headers_. struct ParsedHeader { std::string::const_iterator name_begin; |