diff options
author | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-29 18:21:34 +0000 |
---|---|---|
committer | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-29 18:21:34 +0000 |
commit | 813149f8eae2381d0e788c611035574fbb1fd4c1 (patch) | |
tree | 6e281c1176ad1246b56d73de76e283b9fb009bce /net/disk_cache/backend_impl.h | |
parent | ecf100830533911b799a5806d69f1cc0bd5d91e3 (diff) | |
download | chromium_src-813149f8eae2381d0e788c611035574fbb1fd4c1.zip chromium_src-813149f8eae2381d0e788c611035574fbb1fd4c1.tar.gz chromium_src-813149f8eae2381d0e788c611035574fbb1fd4c1.tar.bz2 |
Disk cache: End the experiment and use the new eviction
algorithm by default.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/248022
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27514 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/disk_cache/backend_impl.h')
-rw-r--r-- | net/disk_cache/backend_impl.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/net/disk_cache/backend_impl.h b/net/disk_cache/backend_impl.h index a2dd0c6..40bae4b 100644 --- a/net/disk_cache/backend_impl.h +++ b/net/disk_cache/backend_impl.h @@ -19,6 +19,7 @@ namespace disk_cache { enum BackendFlags { + kNone = 0, kMask = 1, // A mask (for the index table) was specified. kMaxSize = 1 << 1, // A maximum size was provided. kUnitTestMode = 1 << 2, // We are modifying the behavior for testing. @@ -48,6 +49,12 @@ class BackendImpl : public Backend { ALLOW_THIS_IN_INITIALIZER_LIST(factory_(this)) {} ~BackendImpl(); + // Returns a new backend with the desired flags. See the declaration of + // CreateCacheBackend(). + static Backend* CreateBackend(const std::wstring& full_path, bool force, + int max_bytes, net::CacheType type, + BackendFlags flags); + // Performs general initialization for this current instance of the cache. bool Init(); |