summaryrefslogtreecommitdiffstats
path: root/net/disk_cache/eviction.h
diff options
context:
space:
mode:
authorrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-10 23:57:07 +0000
committerrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-10 23:57:07 +0000
commitd9fac60990a817c7ef7f1a7beef90dc319bf299b (patch)
tree97aa53708de3ee8cd33bcc7a1504442561244994 /net/disk_cache/eviction.h
parent89dbe690980344162fffc84c15a5f18e096b5981 (diff)
downloadchromium_src-d9fac60990a817c7ef7f1a7beef90dc319bf299b.zip
chromium_src-d9fac60990a817c7ef7f1a7beef90dc319bf299b.tar.gz
chromium_src-d9fac60990a817c7ef7f1a7beef90dc319bf299b.tar.bz2
Disk cache: Avoid recursion when trimming entries.
TrimCacheV2() calls EvictEntry() to move a given entry to the "deleted" list. EvictEntry() deletes the actual data, and that may end up calling ModifyStorageSize() and TrimCacheV2() again. BUG=b/1909376 TEST=none Review URL: http://codereview.chromium.org/121002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18115 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/disk_cache/eviction.h')
-rw-r--r--net/disk_cache/eviction.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/disk_cache/eviction.h b/net/disk_cache/eviction.h
index 6526cff..3392680 100644
--- a/net/disk_cache/eviction.h
+++ b/net/disk_cache/eviction.h
@@ -67,6 +67,7 @@ class Eviction {
int max_size_;
bool new_eviction_;
bool first_trim_;
+ bool trimming_;
ScopedRunnableMethodFactory<Eviction> factory_;
DISALLOW_COPY_AND_ASSIGN(Eviction);