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

Unified Diff: net/disk_cache/memory/mem_backend_impl.cc

Issue 2661333002: Track SimpleCache memory usage in net/ MemoryDumpProvider (Closed)
Patch Set: address comments Created 3 years, 10 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/memory/mem_backend_impl.cc
diff --git a/net/disk_cache/memory/mem_backend_impl.cc b/net/disk_cache/memory/mem_backend_impl.cc
index 7ded277b2a6eac201ef6bbac4cf5598cd232587c..3aa103b30a02edb0102eead7d15f94a0c91d504f 100644
--- a/net/disk_cache/memory/mem_backend_impl.cc
+++ b/net/disk_cache/memory/mem_backend_impl.cc
@@ -283,6 +283,11 @@ void MemBackendImpl::OnExternalCacheHit(const std::string& key) {
it->second->UpdateStateOnUse(MemEntryImpl::ENTRY_WAS_NOT_MODIFIED);
}
+size_t MemBackendImpl::EstimateMemoryUsage() const {
+ // TODO(xunjieli): Implement this. crbug.com/669108.
+ return 0;
+}
+
void MemBackendImpl::EvictIfNeeded() {
if (current_size_ <= max_size_)
return;

Powered by Google App Engine
This is Rietveld 408576698