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

Unified Diff: net/disk_cache/disk_cache.h

Issue 2556363003: Refactor cache counting into a separate helper class (Closed)
Patch Set: cleanup Created 4 years 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/disk_cache.h
diff --git a/net/disk_cache/disk_cache.h b/net/disk_cache/disk_cache.h
index f71bc81964b929f4dce5596d724c41bf36429279..6fd6e6244751e2bacc80d67ebd173b511b904396 100644
--- a/net/disk_cache/disk_cache.h
+++ b/net/disk_cache/disk_cache.h
@@ -190,6 +190,9 @@ class NET_EXPORT Entry {
// Returns the size of the cache data with the given index.
virtual int32_t GetDataSize(int index) const = 0;
+ // Return size of all data streams including key and other metadata.
+ virtual int64_t GetEntrySize() const = 0;
+
// Copies cached data into the given buffer of length |buf_len|. Returns the
// number of bytes read or a network error code. If this function returns
// ERR_IO_PENDING, the completion callback will be called on the current

Powered by Google App Engine
This is Rietveld 408576698