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

Unified Diff: net/disk_cache/backend_impl.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
« no previous file with comments | « no previous file | net/disk_cache/backend_impl.cc » ('j') | net/disk_cache/backend_impl.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/backend_impl.h
===================================================================
--- net/disk_cache/backend_impl.h (revision 20196)
+++ net/disk_cache/backend_impl.h (working copy)
@@ -119,17 +119,20 @@
// Logs requests that are denied due to being too big.
void TooMuchStorageRequested(int32 size);
+ // Returns true if this instance seems to be under heavy load.
+ bool IsLoaded() const;
+
// Returns the full histogram name, for the given base |name| and experiment,
// and the current cache type. The name will be "DiskCache.t.name_e" where n
// is the cache type and e the provided |experiment|.
- std::string HistogramName(const char* name, int experiment);
+ std::string HistogramName(const char* name, int experiment) const;
- net::CacheType cache_type() {
+ net::CacheType cache_type() const {
return cache_type_;
}
// Returns the group for this client, based on the current cache size.
- int GetSizeGroup();
+ int GetSizeGroup() const;
// Returns true if we should send histograms for this user again. The caller
// must call this function only once per run (because it returns always the
« no previous file with comments | « no previous file | net/disk_cache/backend_impl.cc » ('j') | net/disk_cache/backend_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698