| Index: net/disk_cache/eviction.h
|
| ===================================================================
|
| --- net/disk_cache/eviction.h (revision 52555)
|
| +++ net/disk_cache/eviction.h (working copy)
|
| @@ -20,10 +20,13 @@
|
| // 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 @@
|
| bool first_trim_;
|
| bool trimming_;
|
| bool delay_trim_;
|
| + bool init_;
|
| ScopedRunnableMethodFactory<Eviction> factory_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(Eviction);
|
|
|