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

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

Issue 2626173003: Calculate the size of all cache entries between two points in time. (Closed)
Patch Set: revert cache_storage_cache_unittest.cc Created 3 years, 11 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 | « net/disk_cache/simple/simple_backend_impl.cc ('k') | net/disk_cache/simple/simple_index.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 fee2a1e93e0b814a8240945d5d70e62cf272a7d7..1adb0ecc48a3f4e177fc392eb0b1726a5e1d9d1c 100644
--- a/net/disk_cache/simple/simple_index.h
+++ b/net/disk_cache/simple/simple_index.h
@@ -155,6 +155,12 @@ class NET_EXPORT_PRIVATE SimpleIndex
// index has been initialized.
uint64_t GetCacheSize() const;
+ // Returns the size of the cache entries accessed between |initial_time| and
+ // |end_time| in bytes. Can only be called after the index has been
+ // initialized.
+ uint64_t GetCacheSizeBetween(const base::Time initial_time,
+ const base::Time end_time) const;
+
// Returns whether the index has been initialized yet.
bool initialized() const { return initialized_; }
« no previous file with comments | « net/disk_cache/simple/simple_backend_impl.cc ('k') | net/disk_cache/simple/simple_index.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698