Chromium Code Reviews| Index: net/socket/client_socket_pool_base.h |
| =================================================================== |
| --- net/socket/client_socket_pool_base.h (revision 172981) |
| +++ net/socket/client_socket_pool_base.h (working copy) |
| @@ -44,6 +44,7 @@ |
| #include "net/base/network_change_notifier.h" |
| #include "net/base/request_priority.h" |
| #include "net/socket/client_socket_pool.h" |
| +#include "net/socket/connect_timing.h" |
| #include "net/socket/stream_socket.h" |
| namespace net { |
| @@ -104,6 +105,8 @@ |
| // additional error state to the ClientSocketHandle (post late-binding). |
| virtual void GetAdditionalErrorState(ClientSocketHandle* handle) {} |
| + ConnectTiming& connect_timing() { return connect_timing_; } |
|
eroman
2012/12/14 04:08:35
Please make it return a const-reference instead. I
mmenke
2012/12/14 13:36:12
Done.
|
| + |
| const BoundNetLog& net_log() const { return net_log_; } |
| protected: |
| @@ -131,6 +134,9 @@ |
| // A ConnectJob is idle until Connect() has been called. |
| bool idle_; |
| + // Connection establishment timing information. |
| + ConnectTiming connect_timing_; |
| + |
| DISALLOW_COPY_AND_ASSIGN(ConnectJob); |
| }; |
| @@ -493,6 +499,7 @@ |
| // Assigns |socket| to |handle| and updates |group|'s counters appropriately. |
| void HandOutSocket(StreamSocket* socket, |
| bool reused, |
| + const ConnectTiming& connect_timing, |
| ClientSocketHandle* handle, |
| base::TimeDelta time_idle, |
| Group* group, |