Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4288)

Unified Diff: blimp/net/tcp_client_transport.cc

Issue 1962393004: Added a debug info UI for Blimp (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added statistics object to BlimpEngineSession Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 {

Powered by Google App Engine
This is Rietveld 408576698