Index: net/quic/chromium/quic_stream_factory.h |
diff --git a/net/quic/chromium/quic_stream_factory.h b/net/quic/chromium/quic_stream_factory.h |
index 212cdf77964e519e61ca357ad17cda1003b3a362..bb958191a9e0417575c2630feee1ec1b236ee634 100644 |
--- a/net/quic/chromium/quic_stream_factory.h |
+++ b/net/quic/chromium/quic_stream_factory.h |
@@ -43,6 +43,9 @@ |
namespace base { |
class Value; |
+namespace trace_event { |
+class ProcessMemoryDump; |
+} |
} |
namespace net { |
@@ -175,6 +178,9 @@ class NET_EXPORT_PRIVATE QuicStreamFactory |
const HostPortPair& destination() const { return destination_; } |
const QuicServerId& server_id() const { return server_id_; } |
+ // Returns estimated memory usage in bytes. |
+ size_t EstimateMemoryUsage() const; |
+ |
private: |
HostPortPair destination_; |
QuicServerId server_id_; |
@@ -392,6 +398,11 @@ class NET_EXPORT_PRIVATE QuicStreamFactory |
return migrate_sessions_on_network_change_; |
} |
+ // 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: |
class Job; |
class CertVerifierJob; |