Index: net/socket/tcp_client_socket_win.h |
=================================================================== |
--- net/socket/tcp_client_socket_win.h (revision 86260) |
+++ net/socket/tcp_client_socket_win.h (working copy) |
@@ -8,6 +8,7 @@ |
#include <winsock2.h> |
+#include "base/time.h" |
#include "base/threading/non_thread_safe.h" |
#include "net/base/address_list.h" |
#include "net/base/completion_callback.h" |
@@ -50,6 +51,9 @@ |
virtual bool WasEverUsed() const; |
virtual bool UsingTCPFastOpen() const; |
+ virtual int NumBytesRead() const { return num_bytes_read_; } |
+ virtual double GetRTTInMs() const { return rtt_ms_; } |
+ |
// Socket methods: |
// Multiple outstanding requests are not supported. |
// Full duplex mode (reading and writing at the same time) is supported |
@@ -136,6 +140,10 @@ |
// histograms. |
UseHistory use_history_; |
+ base::Time connect_start_time_; |
+ int num_bytes_read_; |
+ double rtt_ms_; |
+ |
DISALLOW_COPY_AND_ASSIGN(TCPClientSocketWin); |
}; |