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

Unified Diff: net/disk_cache/simple/simple_index.h

Issue 1398053002: Implement cache counting for the simple and memory backends. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: small changes, cl format Created 5 years, 2 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
Index: net/disk_cache/simple/simple_index.h
diff --git a/net/disk_cache/simple/simple_index.h b/net/disk_cache/simple/simple_index.h
index 11adab9d72f895377d1822cd94ec4ffb4f97c618..5a8046da82291611b66c0a85e78a4d889e43d3f6 100644
--- a/net/disk_cache/simple/simple_index.h
+++ b/net/disk_cache/simple/simple_index.h
@@ -130,6 +130,10 @@ class NET_EXPORT_PRIVATE SimpleIndex
// Returns number of indexed entries.
int32 GetEntryCount() const;
+ // Returns the size of the entire cache in bytes. Can only be called after the
+ // index has been initialized.
+ uint64 GetCacheSize() const;
+
// Returns whether the index has been initialized yet.
bool initialized() const { return initialized_; }

Powered by Google App Engine
This is Rietveld 408576698