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

Unified Diff: net/quic/chromium/quic_stream_factory.h

Issue 2650943007: Track QuicChromiumClientSession in net/ MemoryDumpProvider (Closed)
Patch Set: address ssid comments 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/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;

Powered by Google App Engine
This is Rietveld 408576698