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

Unified Diff: net/base/host_port_pair.h

Issue 2650943007: Track QuicChromiumClientSession in net/ MemoryDumpProvider (Closed)
Patch Set: be more specific in comment 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
« no previous file with comments | « no previous file | net/base/host_port_pair.cc » ('j') | net/quic/chromium/quic_stream_factory.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/host_port_pair.h
diff --git a/net/base/host_port_pair.h b/net/base/host_port_pair.h
index 8fa9b3e143ab85c17592eb934e6b7cbd21e3bb88..ebb2dd16406c4457c9ec0c584abcd9ecea763ea3 100644
--- a/net/base/host_port_pair.h
+++ b/net/base/host_port_pair.h
@@ -34,6 +34,9 @@ class NET_EXPORT HostPortPair {
// ToString().
static HostPortPair FromString(const std::string& str);
+ // Returns the estimate of dynamically allocated memory in bytes.
+ static size_t EstimateMemoryUsage(const HostPortPair& pair);
+
// TODO(willchan): Define a functor instead.
// Comparator function so this can be placed in a std::map.
bool operator<(const HostPortPair& other) const {
« no previous file with comments | « no previous file | net/base/host_port_pair.cc » ('j') | net/quic/chromium/quic_stream_factory.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698