summaryrefslogtreecommitdiffstats
path: root/net/disk_cache/eviction.h
diff options
context:
space:
mode:
authorKristian Monsen <kristianm@google.com>2011-05-31 20:30:28 +0100
committerKristian Monsen <kristianm@google.com>2011-06-14 20:31:41 -0700
commit72a454cd3513ac24fbdd0e0cb9ad70b86a99b801 (patch)
tree382278a54ce7a744d62fa510a9a80688cc12434b /net/disk_cache/eviction.h
parentc4becdd46e31d261b930e4b5a539cbc1d45c23a6 (diff)
downloadexternal_chromium-72a454cd3513ac24fbdd0e0cb9ad70b86a99b801.zip
external_chromium-72a454cd3513ac24fbdd0e0cb9ad70b86a99b801.tar.gz
external_chromium-72a454cd3513ac24fbdd0e0cb9ad70b86a99b801.tar.bz2
Merge Chromium.org at r11.0.672.0: Initial merge by git.
Change-Id: I8b4aaf611a2a405fe3fe10e8a94ea7658645c192
Diffstat (limited to 'net/disk_cache/eviction.h')
-rw-r--r--net/disk_cache/eviction.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/net/disk_cache/eviction.h b/net/disk_cache/eviction.h
index 0f5eeb7..26f88fe 100644
--- a/net/disk_cache/eviction.h
+++ b/net/disk_cache/eviction.h
@@ -40,6 +40,10 @@ class Eviction {
void OnDoomEntry(EntryImpl* entry);
void OnDestroyEntry(EntryImpl* entry);
+ // Testing interface.
+ void SetTestMode();
+ void TrimDeletedList(bool empty);
+
private:
void PostDelayedTrim();
void DelayedTrim();
@@ -75,6 +79,7 @@ class Eviction {
bool trimming_;
bool delay_trim_;
bool init_;
+ bool test_mode_;
bool in_experiment_;
ScopedRunnableMethodFactory<Eviction> factory_;