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

Unified Diff: net/http/mock_http_cache.h

Issue 2661333002: Track SimpleCache memory usage in net/ MemoryDumpProvider (Closed)
Patch Set: self Created 3 years, 11 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/http/mock_http_cache.h
diff --git a/net/http/mock_http_cache.h b/net/http/mock_http_cache.h
index 7cf03db4051170a08b6d579624f2669cdd623f73..d91f4371465788d7e29ce93aaab6e89f6bc3f003 100644
--- a/net/http/mock_http_cache.h
+++ b/net/http/mock_http_cache.h
@@ -134,6 +134,7 @@ class MockDiskCache : public disk_cache::Backend {
std::unique_ptr<Iterator> CreateIterator() override;
void GetStats(base::StringPairs* stats) override;
void OnExternalCacheHit(const std::string& key) override;
+ size_t EstimateMemoryUsage() const override;
// Returns number of times a cache entry was successfully opened.
int open_count() const { return open_count_; }

Powered by Google App Engine
This is Rietveld 408576698