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

Unified Diff: net/disk_cache/eviction.h

Issue 155314: Disk cache: Don't evict entries if we are busy doing other stuff.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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 20196)
+++ net/disk_cache/eviction.h (working copy)
@@ -40,6 +40,8 @@
void OnDestroyEntry(EntryImpl* entry);
private:
+ void PostDelayedTrim();
+ void DelayedTrim();
void ReportTrimTimes(EntryImpl* entry);
Rankings::List GetListForEntry(EntryImpl* entry);
bool EvictEntry(CacheRankingsBlock* node, bool empty);
@@ -68,6 +70,7 @@
bool new_eviction_;
bool first_trim_;
bool trimming_;
+ bool delay_trim_;
ScopedRunnableMethodFactory<Eviction> factory_;
DISALLOW_COPY_AND_ASSIGN(Eviction);

Powered by Google App Engine
This is Rietveld 408576698