| Index: net/http/http_cache.h
|
| diff --git a/net/http/http_cache.h b/net/http/http_cache.h
|
| index 2aae2fcf27e1cc0aed6fcbbe3b73eb3c3d293708..8c47b331acec791458d7bb9c53f252e0bdf5e3f1 100644
|
| --- a/net/http/http_cache.h
|
| +++ b/net/http/http_cache.h
|
| @@ -38,6 +38,9 @@ class GURL;
|
|
|
| namespace base {
|
| class SingleThreadTaskRunner;
|
| +namespace trace_event {
|
| +class ProcessMemoryDump;
|
| +}
|
| } // namespace base
|
|
|
| namespace disk_cache {
|
| @@ -216,6 +219,11 @@ class NET_EXPORT HttpCache : public HttpTransactionFactory,
|
| SetHttpNetworkTransactionFactoryForTesting(
|
| std::unique_ptr<HttpTransactionFactory> new_network_layer);
|
|
|
| + // Dumps memory allocation stats. |parent_dump_absolute_name| is the name
|
| + // used by the parent MemoryAllocatorDump in the memory dump hierarchy.
|
| + void DumpMemoryStats(base::trace_event::ProcessMemoryDump* pmd,
|
| + const std::string& parent_absolute_name) const;
|
| +
|
| private:
|
| // Types --------------------------------------------------------------------
|
|
|
| @@ -243,6 +251,8 @@ class NET_EXPORT HttpCache : public HttpTransactionFactory,
|
| struct ActiveEntry {
|
| explicit ActiveEntry(disk_cache::Entry* entry);
|
| ~ActiveEntry();
|
| + // Returns the estimate of dynamically allocated memory in bytes.
|
| + size_t EstimateMemoryUsage() const;
|
|
|
| disk_cache::Entry* disk_entry;
|
| Transaction* writer;
|
|
|