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

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

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/simple/simple_entry_impl.h
diff --git a/net/disk_cache/simple/simple_entry_impl.h b/net/disk_cache/simple/simple_entry_impl.h
index 7df3f4f0eb33d6ddec087a07cb0c86096a5cb1e8..1484fadcefb4af482c12e27ed14fcc828c6e5141 100644
--- a/net/disk_cache/simple/simple_entry_impl.h
+++ b/net/disk_cache/simple/simple_entry_impl.h
@@ -122,6 +122,9 @@ class NET_EXPORT_PRIVATE SimpleEntryImpl : public Entry,
void CancelSparseIO() override;
int ReadyForSparseIO(const CompletionCallback& callback) override;
+ // Returns the estimate of dynamically allocated memory in bytes.
+ size_t EstimateMemoryUsage() const;
+
private:
class ScopedOperationRunner;
friend class ScopedOperationRunner;

Powered by Google App Engine
This is Rietveld 408576698