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

Unified Diff: net/disk_cache/blockfile/entry_impl.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/entry_impl.h
diff --git a/net/disk_cache/blockfile/entry_impl.h b/net/disk_cache/blockfile/entry_impl.h
index aafb59b66a295d0df8f1b417d85430ee0ef5bf28..0e8eb3852d2313d7bf5da1e8cc0411d92cd5f7ec 100644
--- a/net/disk_cache/blockfile/entry_impl.h
+++ b/net/disk_cache/blockfile/entry_impl.h
@@ -146,6 +146,9 @@ class NET_EXPORT_PRIVATE EntryImpl
// Returns the number of blocks needed to store an EntryStore.
static int NumBlocksForEntry(int key_size);
+ // The total size of this entry; sum of |GetDataSize| for all streams.
+ int GetEntrySize() const;
+
// Entry interface.
void Doom() override;
void Close() override;

Powered by Google App Engine
This is Rietveld 408576698