| Index: net/socket/stream_socket.h
|
| ===================================================================
|
| --- net/socket/stream_socket.h (revision 90217)
|
| +++ net/socket/stream_socket.h (working copy)
|
| @@ -6,6 +6,7 @@
|
| #define NET_SOCKET_STREAM_SOCKET_H_
|
| #pragma once
|
|
|
| +#include "base/time.h"
|
| #include "net/base/net_log.h"
|
| #include "net/socket/socket.h"
|
|
|
| @@ -79,6 +80,12 @@
|
| // TCP FastOpen is an experiment with sending data in the TCP SYN packet.
|
| virtual bool UsingTCPFastOpen() const = 0;
|
|
|
| + // Returns the number of bytes successfully read from this socket.
|
| + virtual int64 NumBytesRead() const = 0;
|
| +
|
| + // Returns the connection setup time of this socket.
|
| + virtual base::TimeDelta GetConnectTimeMicros() const = 0;
|
| +
|
| 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
|
|
|