Index: net/disk_cache/disk_cache.h |
diff --git a/net/disk_cache/disk_cache.h b/net/disk_cache/disk_cache.h |
index 84c1ee99516654258486494a8afeacfb70ddc31d..e5faa8adf6488fcb50c5ee6ae80980e187d146de 100644 |
--- a/net/disk_cache/disk_cache.h |
+++ b/net/disk_cache/disk_cache.h |
@@ -145,6 +145,16 @@ class NET_EXPORT Backend { |
virtual int DoomEntriesSince(base::Time initial_time, |
const CompletionCallback& callback) = 0; |
+ // Calculate the total size of entries satisfying the condition |
+ // |initial_time| <= access_time < |end_time|. The return value is the number |
+ // of bytes written or a net error code. If this method returns |
+ // ERR_IO_PENDING, the |callback| will be invoked when the operation |
+ // completes. |
pasko
2015/09/08 13:13:49
Please also make it similar to DoomEntriesBetween
msramek
2015/09/08 18:32:22
As explained in the other comment, this part is ap
pasko
2015/09/09 09:09:29
opps, for simple_cache we certainly allow unbounde
msramek
2015/09/09 09:20:42
The comment is in Patchset 6, backend_impl.cc.
In
|
+ virtual int CalculateSizeOfEntriesBetween( |
+ base::Time initial_time, |
+ base::Time end_time, |
+ const CompletionCallback& callback) = 0; |
+ |
// Returns an iterator which will enumerate all entries of the cache in an |
// undefined order. |
virtual scoped_ptr<Iterator> CreateIterator() = 0; |