Chromium Code Reviews| Index: blimp/net/tcp_client_transport.cc |
| diff --git a/blimp/net/tcp_client_transport.cc b/blimp/net/tcp_client_transport.cc |
| index f78884318c3326614537c2cfa5b3535097ce3b52..1b0734d83e744fefa4d9e7bd8361fbd6addbadfb 100644 |
| --- a/blimp/net/tcp_client_transport.cc |
| +++ b/blimp/net/tcp_client_transport.cc |
| @@ -10,6 +10,7 @@ |
| #include "base/callback_helpers.h" |
| #include "base/memory/ptr_util.h" |
| #include "base/message_loop/message_loop.h" |
| +#include "blimp/net/blimp_connection_statistics.h" |
| #include "blimp/net/stream_socket_connection.h" |
| #include "net/socket/client_socket_factory.h" |
| #include "net/socket/stream_socket.h" |
| @@ -18,8 +19,10 @@ |
| namespace blimp { |
| TCPClientTransport::TCPClientTransport(const net::IPEndPoint& ip_endpoint, |
| + BlimpConnectionStatistics* statistics, |
| net::NetLog* net_log) |
| : ip_endpoint_(ip_endpoint), |
| + blimp_connection_statistics_(statistics), |
| net_log_(net_log), |
| socket_factory_(net::ClientSocketFactory::GetDefaultFactory()) {} |
|
Kevin M
2016/05/24 22:56:40
DCHECK(statistics)
|
| @@ -52,7 +55,8 @@ void TCPClientTransport::Connect(const net::CompletionCallback& callback) { |
| std::unique_ptr<BlimpConnection> TCPClientTransport::TakeConnection() { |
| DCHECK(connect_callback_.is_null()); |
| DCHECK(socket_); |
| - return base::WrapUnique(new StreamSocketConnection(std::move(socket_))); |
| + return base::WrapUnique(new StreamSocketConnection( |
| + std::move(socket_), blimp_connection_statistics_)); |
| } |
| const char* TCPClientTransport::GetName() const { |