summaryrefslogtreecommitdiffstats
path: root/net/http/http_cache.h
diff options
context:
space:
mode:
authorrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-24 17:59:31 +0000
committerrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-24 17:59:31 +0000
commit21f659de19e3ea874a0958372a311746a0e764c2 (patch)
treeed614625bb19dc6d981682b4af0e1462ccfb05e5 /net/http/http_cache.h
parentee2eb89954c440c9249a3bf34e6960526e2f490b (diff)
downloadchromium_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.h5
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;