Index: net/socket/tcp_client_socket_win.h |
=================================================================== |
--- net/socket/tcp_client_socket_win.h (revision 88319) |
+++ net/socket/tcp_client_socket_win.h (working copy) |
@@ -9,6 +9,7 @@ |
#include <winsock2.h> |
#include "base/scoped_ptr.h" |
+#include "base/time.h" |
#include "base/threading/non_thread_safe.h" |
#include "net/base/address_list.h" |
#include "net/base/completion_callback.h" |
@@ -54,6 +55,9 @@ |
virtual bool WasEverUsed() const; |
virtual bool UsingTCPFastOpen() const; |
+ virtual int64 NumBytesRead() const { return num_bytes_read_; } |
+ virtual double GetRTTInMs() const { return rtt_ms_; } |
Mike Belshe
2011/06/09 16:08:52
Nit: I like that you are exposing this function o
Gagan
2011/06/09 19:49:26
Done.
|
+ |
// Socket methods: |
// Multiple outstanding requests are not supported. |
// Full duplex mode (reading and writing at the same time) is supported |
@@ -141,6 +145,10 @@ |
// histograms. |
UseHistory use_history_; |
+ base::Time connect_start_time_; |
+ int64 num_bytes_read_; |
+ double rtt_ms_; |
+ |
DISALLOW_COPY_AND_ASSIGN(TCPClientSocketWin); |
}; |