summaryrefslogtreecommitdiffstats
path: root/net/disk_cache/eviction.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/disk_cache/eviction.h')
-rw-r--r--net/disk_cache/eviction.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/net/disk_cache/eviction.h b/net/disk_cache/eviction.h
index c86e33a..76ee00b 100644
--- a/net/disk_cache/eviction.h
+++ b/net/disk_cache/eviction.h
@@ -20,10 +20,13 @@ class EntryImpl;
// integrated with BackendImpl.
class Eviction {
public:
- Eviction() : backend_(NULL), ALLOW_THIS_IN_INITIALIZER_LIST(factory_(this)) {}
+ Eviction()
+ : backend_(NULL), init_(false),
+ ALLOW_THIS_IN_INITIALIZER_LIST(factory_(this)) {}
~Eviction() {}
void Init(BackendImpl* backend);
+ void Stop();
// Deletes entries from the cache until the current size is below the limit.
// If empty is true, the whole cache will be trimmed, regardless of being in
@@ -73,6 +76,7 @@ class Eviction {
bool first_trim_;
bool trimming_;
bool delay_trim_;
+ bool init_;
ScopedRunnableMethodFactory<Eviction> factory_;
DISALLOW_COPY_AND_ASSIGN(Eviction);