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

Unified Diff: net/disk_cache/blockfile/in_flight_backend_io.h

Issue 1304363013: Add a size estimation mechanism to StoragePartitionHttpCacheDataRemover. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Support null max time. Created 5 years, 3 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/in_flight_backend_io.h
diff --git a/net/disk_cache/blockfile/in_flight_backend_io.h b/net/disk_cache/blockfile/in_flight_backend_io.h
index e2fa4e7b3a5f7b55d5583817731b4429e376ac02..962991196837b96db6ec9201de4c570489816320 100644
--- a/net/disk_cache/blockfile/in_flight_backend_io.h
+++ b/net/disk_cache/blockfile/in_flight_backend_io.h
@@ -56,6 +56,8 @@ class BackendIO : public BackgroundIO {
void DoomEntriesBetween(const base::Time initial_time,
const base::Time end_time);
void DoomEntriesSince(const base::Time initial_time);
+ void CalculateSizeOfEntriesBetween(const base::Time initial_time,
+ const base::Time end_time);
void OpenNextEntry(Rankings::Iterator* iterator, Entry** next_entry);
void EndEnumeration(scoped_ptr<Rankings::Iterator> iterator);
void OnExternalCacheHit(const std::string& key);
@@ -90,6 +92,7 @@ class BackendIO : public BackgroundIO {
OP_DOOM_ALL,
OP_DOOM_BETWEEN,
OP_DOOM_SINCE,
+ OP_SIZE_BETWEEN,
OP_OPEN_NEXT,
OP_END_ENUMERATION,
OP_ON_EXTERNAL_CACHE_HIT,
@@ -165,6 +168,9 @@ class InFlightBackendIO : public InFlightIO {
const net::CompletionCallback& callback);
void DoomEntriesSince(const base::Time initial_time,
const net::CompletionCallback& callback);
+ void CalculateSizeOfEntriesBetween(const base::Time initial_time,
+ const base::Time end_time,
+ const net::CompletionCallback& callback);
void OpenNextEntry(Rankings::Iterator* iterator, Entry** next_entry,
const net::CompletionCallback& callback);
void EndEnumeration(scoped_ptr<Rankings::Iterator> iterator);

Powered by Google App Engine
This is Rietveld 408576698