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

Unified Diff: net/disk_cache/blockfile/backend_impl.cc

Issue 2626173003: Calculate the size of all cache entries between two points in time. (Closed)
Patch Set: fix unit_tests compilation 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
Index: net/disk_cache/blockfile/backend_impl.cc
diff --git a/net/disk_cache/blockfile/backend_impl.cc b/net/disk_cache/blockfile/backend_impl.cc
index f0cdb0c9048fbd964cd11769fcc0ce6514a1418a..e9371813aa13bffe069ffba6cfd87a558255ad8a 100644
--- a/net/disk_cache/blockfile/backend_impl.cc
+++ b/net/disk_cache/blockfile/backend_impl.cc
@@ -1270,6 +1270,15 @@ int BackendImpl::CalculateSizeOfAllEntries(const CompletionCallback& callback) {
return net::ERR_IO_PENDING;
}
+int BackendImpl::CalculateSizeOfEntriesBetween(
+ base::Time initial_time,
+ base::Time end_time,
+ const CompletionCallback& callback) {
+ // Calculating the size of a subset of cache entries is not implemented
+ // because it would require to open and read all entries from disk.
+ return net::ERR_NOT_IMPLEMENTED;
gavinp 2017/01/12 16:07:35 Why not move all of these ERR_NOT_IMPLEMENTED vers
+}
+
class BackendImpl::IteratorImpl : public Backend::Iterator {
public:
explicit IteratorImpl(base::WeakPtr<InFlightBackendIO> background_queue)

Powered by Google App Engine
This is Rietveld 408576698