Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1012)

Unified Diff: net/disk_cache/eviction.h

Issue 2854053: Disk cache: Stop evictions while performing final cleanup.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);

Powered by Google App Engine
This is Rietveld 408576698