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

Unified Diff: net/socket/ssl_client_socket_impl.h

Issue 2541093003: Instrument SSL sockets using MemoryDumpProvider (Closed)
Patch Set: Fix flaky test Created 4 years 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/socket/socket_bio_adapter.cc ('k') | net/socket/ssl_client_socket_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/socket/ssl_client_socket_impl.h
diff --git a/net/socket/ssl_client_socket_impl.h b/net/socket/ssl_client_socket_impl.h
index de677ba37138ce3742f0ff0edfcea5280d541c68..3070daf557cf37b51ca39b857d75f636b03e5f08 100644
--- a/net/socket/ssl_client_socket_impl.h
+++ b/net/socket/ssl_client_socket_impl.h
@@ -37,6 +37,9 @@
namespace base {
class FilePath;
class SequencedTaskRunner;
+namespace trace_event {
+class ProcessMemoryDump;
+}
}
namespace crypto {
@@ -114,6 +117,13 @@ class SSLClientSocketImpl : public SSLClientSocket,
void ClearConnectionAttempts() override {}
void AddConnectionAttempts(const ConnectionAttempts& attempts) override {}
int64_t GetTotalReceivedBytes() const override;
+ void DumpMemoryStats(
+ base::trace_event::ProcessMemoryDump* pmd,
+ const std::string& parent_dump_absolute_name) const override;
+
+ // Dumps memory allocation stats. |pmd| is the browser process memory dump.
+ static void DumpSSLClientSessionMemoryStats(
+ base::trace_event::ProcessMemoryDump* pmd);
// Socket implementation.
int Read(IOBuffer* buf,
« no previous file with comments | « net/socket/socket_bio_adapter.cc ('k') | net/socket/ssl_client_socket_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698