diff options
author | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-21 21:29:13 +0000 |
---|---|---|
committer | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-21 21:29:13 +0000 |
commit | 1c5173d50eafc6b66eb4e8990263f53e87c5fe0d (patch) | |
tree | 756f12a2196acc85c4f85eaf9435feb0a4572b62 /net/http/http_cache.h | |
parent | 6c5d7b2eb1d440e8ddf90a9042cb6861da06aa41 (diff) | |
download | chromium_src-1c5173d50eafc6b66eb4e8990263f53e87c5fe0d.zip chromium_src-1c5173d50eafc6b66eb4e8990263f53e87c5fe0d.tar.gz chromium_src-1c5173d50eafc6b66eb4e8990263f53e87c5fe0d.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/173173
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24015 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; |