| Index: net/socket/tcp_client_socket_libevent.h
|
| ===================================================================
|
| --- net/socket/tcp_client_socket_libevent.h (revision 89323)
|
| +++ 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"
|
| @@ -55,6 +56,8 @@
|
| virtual void SetOmniboxSpeculation();
|
| virtual bool WasEverUsed() const;
|
| virtual bool UsingTCPFastOpen() const;
|
| + virtual int64 NumBytesRead() const { return num_bytes_read_; }
|
| + virtual int GetConnectTimeMicros() const { return connect_time_micros_; }
|
|
|
| // Socket methods:
|
| // Multiple outstanding requests are not supported.
|
| @@ -197,6 +200,10 @@
|
| // True when TCP FastOpen is in use and we have done the connect.
|
| bool tcp_fastopen_connected_;
|
|
|
| + base::TimeTicks connect_start_time_;
|
| + int64 num_bytes_read_;
|
| + int connect_time_micros_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(TCPClientSocketLibevent);
|
| };
|
|
|
|
|