| Index: net/socket/client_socket_handle.cc
|
| ===================================================================
|
| --- net/socket/client_socket_handle.cc (revision 175289)
|
| +++ net/socket/client_socket_handle.cc (working copy)
|
| @@ -62,6 +62,7 @@
|
| idle_time_ = base::TimeDelta();
|
| init_time_ = base::TimeTicks();
|
| setup_time_ = base::TimeDelta();
|
| + connect_timing_ = LoadTimingInfo::ConnectTiming();
|
| pool_id_ = -1;
|
| }
|
|
|
| @@ -103,6 +104,24 @@
|
| }
|
| }
|
|
|
| +bool ClientSocketHandle::GetLoadTimingInfo(
|
| + bool is_reused,
|
| + LoadTimingInfo* load_timing_info) const {
|
| + // Only return load timing information when there's a socket.
|
| + if (!socket_)
|
| + return false;
|
| +
|
| + load_timing_info->socket_log_id = socket_->NetLog().source().id;
|
| + load_timing_info->socket_reused = is_reused;
|
| +
|
| + // No times if the socket is reused.
|
| + if (is_reused)
|
| + return true;
|
| +
|
| + load_timing_info->connect_timing = connect_timing_;
|
| + return true;
|
| +}
|
| +
|
| void ClientSocketHandle::OnIOComplete(int result) {
|
| CompletionCallback callback = user_callback_;
|
| user_callback_.Reset();
|
|
|