| Index: net/socket/stream_socket.h
|
| diff --git a/net/socket/stream_socket.h b/net/socket/stream_socket.h
|
| index 4ed735af04fd3ce8da1d312960971482003e88d7..2f3b3022bb3f5ef9d2e443f64bc696bc7a70e1fc 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 AddressList;
|
| @@ -58,6 +64,9 @@ class NET_EXPORT_PRIVATE StreamSocket : public Socket {
|
| // have been received.
|
| virtual bool IsConnectedAndIdle() const = 0;
|
|
|
| + virtual void OnAddedToPool() {}
|
| + virtual void OnRemovedFromPool() {}
|
| +
|
| // Copies the peer address to |address| and returns a network error code.
|
| // ERR_SOCKET_NOT_CONNECTED will be returned if the socket is not connected.
|
| virtual int GetPeerAddress(IPEndPoint* address) const = 0;
|
| @@ -111,6 +120,9 @@ class NET_EXPORT_PRIVATE StreamSocket : public Socket {
|
| // Disconnect() is called.
|
| virtual int64_t GetTotalReceivedBytes() const = 0;
|
|
|
| + virtual void PopulateAllocatorDump(
|
| + base::trace_event::MemoryAllocatorDump* dump) const;
|
| +
|
| 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
|
|
|