Chromium Code Reviews| Index: net/socket/tcp_client_socket_libevent.h |
| =================================================================== |
| --- net/socket/tcp_client_socket_libevent.h (revision 86260) |
| +++ net/socket/tcp_client_socket_libevent.h (working copy) |
| @@ -10,6 +10,7 @@ |
| #include "base/memory/scoped_ptr.h" |
| #include "base/message_loop.h" |
| #include "base/threading/non_thread_safe.h" |
| +#include "base/time.h" |
| #include "net/base/address_list.h" |
| #include "net/base/completion_callback.h" |
| #include "net/base/net_log.h" |
| @@ -53,6 +54,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 |
| @@ -193,6 +197,10 @@ |
| // True when TCP FastOpen is in use and we have done the connect. |
| bool tcp_fastopen_connected_; |
| + base::Time connect_start_time_; |
| + int num_bytes_read_; |
|
wtc
2011/06/06 17:24:05
This byte count should be int64 to allow a long-li
Gagan
2011/06/08 16:26:37
Done.
|
| + double rtt_ms_; |
| + |
| DISALLOW_COPY_AND_ASSIGN(TCPClientSocketLibevent); |
| }; |