diff options
author | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-24 17:59:31 +0000 |
---|---|---|
committer | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-24 17:59:31 +0000 |
commit | 21f659de19e3ea874a0958372a311746a0e764c2 (patch) | |
tree | ed614625bb19dc6d981682b4af0e1462ccfb05e5 /net/http/http_cache.h | |
parent | ee2eb89954c440c9249a3bf34e6960526e2f490b (diff) | |
download | chromium_src-21f659de19e3ea874a0958372a311746a0e764c2.zip chromium_src-21f659de19e3ea874a0958372a311746a0e764c2.tar.gz chromium_src-21f659de19e3ea874a0958372a311746a0e764c2.tar.bz2 |
Http cache: Enable experimental support for byte range requests.
Requires --enable-byte-range-support
BUG=12258
TEST=covered by unit tests.
Review URL: http://codereview.chromium.org/173231
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24113 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_cache.h')
-rw-r--r-- | net/http/http_cache.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/net/http/http_cache.h b/net/http/http_cache.h index 19c4331..af5c55e 100644 --- a/net/http/http_cache.h +++ b/net/http/http_cache.h @@ -116,6 +116,10 @@ class HttpCache : public HttpTransactionFactory { // Close All Idle Sockets. This is for debugging. void CloseIdleConnections(); + void set_enable_range_support(bool value) { + enable_range_support_ = value; + } + private: // Types -------------------------------------------------------------------- @@ -188,6 +192,7 @@ class HttpCache : public HttpTransactionFactory { bool in_memory_cache_; bool deleted_; // TODO(rvargas): remove this member. See bug 9952. + bool enable_range_support_; int cache_size_; typedef base::hash_map<std::string, int> PlaybackCacheMap; |