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

Unified Diff: net/disk_cache/simple/simple_entry_impl.cc

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/simple/simple_entry_impl.cc
diff --git a/net/disk_cache/simple/simple_entry_impl.cc b/net/disk_cache/simple/simple_entry_impl.cc
index 23136ba60e541c91b9d5cfccfe0bffb1651df214..37a3d2ec78fa325f55c76c46bcb64249240099c9 100644
--- a/net/disk_cache/simple/simple_entry_impl.cc
+++ b/net/disk_cache/simple/simple_entry_impl.cc
@@ -344,6 +344,10 @@ int32_t SimpleEntryImpl::GetDataSize(int stream_index) const {
return data_size_[stream_index];
}
+int64_t SimpleEntryImpl::GetEntrySize() const {
+ return GetDiskUsage();
+}
+
int SimpleEntryImpl::ReadData(int stream_index,
int offset,
net::IOBuffer* buf,

Powered by Google App Engine
This is Rietveld 408576698