diff options
author | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-09 22:43:35 +0000 |
---|---|---|
committer | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-09 22:43:35 +0000 |
commit | 8f82f9d9ae8dfd23ab63fb9e63c6246da71d29fd (patch) | |
tree | 3c4308efb534a5585d947882666b86073ae89463 /net/disk_cache/eviction.h | |
parent | d756326c7c3c4a53ca94bc8d709d13e65c0d6464 (diff) | |
download | chromium_src-8f82f9d9ae8dfd23ab63fb9e63c6246da71d29fd.zip chromium_src-8f82f9d9ae8dfd23ab63fb9e63c6246da71d29fd.tar.gz chromium_src-8f82f9d9ae8dfd23ab63fb9e63c6246da71d29fd.tar.bz2 |
Disk cache: Don't evict entries if we are busy doing other stuff.
BUG=10727
TEST=none
Review URL: http://codereview.chromium.org/155314
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20330 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/disk_cache/eviction.h')
-rw-r--r-- | net/disk_cache/eviction.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/disk_cache/eviction.h b/net/disk_cache/eviction.h index 3392680..e3c0a72 100644 --- a/net/disk_cache/eviction.h +++ b/net/disk_cache/eviction.h @@ -40,6 +40,8 @@ class Eviction { 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 @@ class Eviction { bool new_eviction_; bool first_trim_; bool trimming_; + bool delay_trim_; ScopedRunnableMethodFactory<Eviction> factory_; DISALLOW_COPY_AND_ASSIGN(Eviction); |