Chromium Code Reviews| Index: net/socket/stream_socket.h |
| diff --git a/net/socket/stream_socket.h b/net/socket/stream_socket.h |
| index b038d9b54db72cf727c6bf22e1eed3f65cd48a15..942e94bf15f3391355c79aa33c0c5aacdafc0177 100644 |
| --- a/net/socket/stream_socket.h |
| +++ b/net/socket/stream_socket.h |
| @@ -13,6 +13,12 @@ |
| #include "net/socket/next_proto.h" |
| #include "net/socket/socket.h" |
| +namespace base { |
| +namespace trace_event { |
| +class MemoryAllocatorDump; |
| +} |
| +} |
| + |
| namespace net { |
| class IPEndPoint; |
| @@ -110,6 +116,11 @@ class NET_EXPORT_PRIVATE StreamSocket : public Socket { |
| // Disconnect() is called. |
| virtual int64_t GetTotalReceivedBytes() const = 0; |
| + // Called by the socket pool to dump memory allocation stats. |dump| is the |
| + // MemoryAllocatorDump of the socket pool. |
| + virtual void DumpMemoryStats( |
| + base::trace_event::MemoryAllocatorDump* dump) const = 0; |
|
eroman
2016/11/29 22:22:51
For these various interface additions, I suggest m
xunjieli
2016/11/29 22:42:04
I had the non-abstract version in PS #1. However,
|
| + |
| protected: |
| // The following class is only used to gather statistics about the history of |
| // a socket. It is only instantiated and used in basic sockets, such as |