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

Unified Diff: net/disk_cache/disk_cache.h

Issue 2779733002: [HttpCache] Store some memcache info to memory dumps for debugging (Closed)
Patch Set: Rebase xunjieli's change Created 3 years, 9 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
« no previous file with comments | « net/disk_cache/blockfile/backend_impl.cc ('k') | net/disk_cache/memory/mem_backend_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/disk_cache.h
diff --git a/net/disk_cache/disk_cache.h b/net/disk_cache/disk_cache.h
index a2001c8b8fd00909f7d5239c9bab027da2cf4739..4a3ae119b53f9c90b22f5c70379e5d4fb0f1f057 100644
--- a/net/disk_cache/disk_cache.h
+++ b/net/disk_cache/disk_cache.h
@@ -25,8 +25,13 @@
namespace base {
class FilePath;
class SingleThreadTaskRunner;
+
+namespace trace_event {
+class ProcessMemoryDump;
}
+} // namespace base
+
namespace net {
class IOBuffer;
class NetLog;
@@ -176,7 +181,9 @@ class NET_EXPORT Backend {
virtual void OnExternalCacheHit(const std::string& key) = 0;
// Returns the estimate of dynamically allocated memory in bytes.
- virtual size_t EstimateMemoryUsage() const = 0;
+ virtual size_t DumpMemoryStats(
+ base::trace_event::ProcessMemoryDump* pmd,
+ const std::string& parent_absolute_name) const = 0;
};
// This interface represents an entry in the disk cache.
« no previous file with comments | « net/disk_cache/blockfile/backend_impl.cc ('k') | net/disk_cache/memory/mem_backend_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698