diff options
author | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-25 23:44:20 +0000 |
---|---|---|
committer | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-25 23:44:20 +0000 |
commit | 6192f73a9dd17c950ef1ca97db086e8bc4eaf05e (patch) | |
tree | 7af372f9670e74b144d17f1f7c009a9eb13a74a2 /net/disk_cache/disk_cache.h | |
parent | 1ba590018ad58ea18ec3079f089feb64fd951d87 (diff) | |
download | chromium_src-6192f73a9dd17c950ef1ca97db086e8bc4eaf05e.zip chromium_src-6192f73a9dd17c950ef1ca97db086e8bc4eaf05e.tar.gz chromium_src-6192f73a9dd17c950ef1ca97db086e8bc4eaf05e.tar.bz2 |
Disk cache: First pass to make it possible to have
multiple instances of BackendImpl. We need multiple
objects to be able to support media files on the cache.
After this change, histograms will be the only thing that
get messed up by multiple disk caches.
Review URL: http://codereview.chromium.org/49027
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12520 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/disk_cache/disk_cache.h')
-rw-r--r-- | net/disk_cache/disk_cache.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/disk_cache/disk_cache.h b/net/disk_cache/disk_cache.h index 50f50c5..5eb6d2c 100644 --- a/net/disk_cache/disk_cache.h +++ b/net/disk_cache/disk_cache.h @@ -14,6 +14,7 @@ #include "base/basictypes.h" #include "base/platform_file.h" #include "base/time.h" +#include "net/base/cache_type.h" #include "net/base/completion_callback.h" namespace net { @@ -35,7 +36,7 @@ class Backend; // based on the available disk space. The returned pointer can be NULL if a // fatal error is found. Backend* CreateCacheBackend(const std::wstring& path, bool force, - int max_bytes); + int max_bytes, net::CacheType type); // Returns an instance of a Backend implemented only in memory. The returned // object should be deleted when not needed anymore. max_bytes is the maximum |