summaryrefslogtreecommitdiffstats
path: root/net/disk_cache/backend_impl.h
diff options
context:
space:
mode:
authorrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-11 23:49:43 +0000
committerrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-11 23:49:43 +0000
commit763ebe7adfd2aa850f94862b49ee6d7371d0e22f (patch)
tree687a82eaec0a9896698b1b8cbcdd999964fead42 /net/disk_cache/backend_impl.h
parent579f8970ea79d64a3d76c9201f28c9b0c8ed5862 (diff)
downloadchromium_src-763ebe7adfd2aa850f94862b49ee6d7371d0e22f.zip
chromium_src-763ebe7adfd2aa850f94862b49ee6d7371d0e22f.tar.gz
chromium_src-763ebe7adfd2aa850f94862b49ee6d7371d0e22f.tar.bz2
Disk cache: Set up an experiment to measure the effect of
increasing the maximum cache size. There will be three groups on the experiment, each group with 10% of the users (Dev Channel). Each group will have the max cache size increased by a factor from 2 to 4 times the current size, and we'll measure the age of evicted entries. I'm also adding a few metrics of reliability, to detect how often we're not getting to do proper cleanup. Review URL: http://codereview.chromium.org/14013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6847 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/disk_cache/backend_impl.h')
-rw-r--r--net/disk_cache/backend_impl.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/net/disk_cache/backend_impl.h b/net/disk_cache/backend_impl.h
index 7b747de..9373e90 100644
--- a/net/disk_cache/backend_impl.h
+++ b/net/disk_cache/backend_impl.h
@@ -99,6 +99,9 @@ class BackendImpl : public Backend {
// Reports a critical error (and disables the cache).
void CriticalError(int error);
+ // Reports an uncommon, recoverable error.
+ void ReportError(int error);
+
// Called when an interesting event should be logged (counted).
void OnEvent(Stats::Counters an_event);
@@ -133,6 +136,7 @@ class BackendImpl : public Backend {
// Deletes the cache and starts again.
void RestartCache();
+ void PrepareForRestart();
// Creates a new entry object and checks to see if it is dirty. Returns zero
// on success, or a disk_cache error on failure.
@@ -153,6 +157,7 @@ class BackendImpl : public Backend {
// If empty is true, the whole cache will be trimmed, regardless of being in
// use.
void TrimCache(bool empty);
+ void ReportTrimTimes(EntryImpl* entry);
// Handles the used storage count.
void AddStorageSize(int32 bytes);