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

Unified Diff: blimp/net/tcp_engine_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 empty implementation for linux client 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
« no previous file with comments | « blimp/net/tcp_engine_transport.h ('k') | blimp/net/tcp_transport_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/net/tcp_engine_transport.cc
diff --git a/blimp/net/tcp_engine_transport.cc b/blimp/net/tcp_engine_transport.cc
index f214a69189d99ba13584c34fecc73d1620bc8acc..3d016c49365c7db1726a4ae1044d220238871e0a 100644
--- a/blimp/net/tcp_engine_transport.cc
+++ b/blimp/net/tcp_engine_transport.cc
@@ -17,8 +17,13 @@
namespace blimp {
TCPEngineTransport::TCPEngineTransport(const net::IPEndPoint& address,
+ BlimpConnectionStatistics* statistics,
net::NetLog* net_log)
- : address_(address), net_log_(net_log) {}
+ : address_(address),
+ blimp_connection_statistics_(statistics),
+ net_log_(net_log) {
+ DCHECK(blimp_connection_statistics_);
+}
TCPEngineTransport::~TCPEngineTransport() {}
@@ -59,8 +64,8 @@ void TCPEngineTransport::Connect(const net::CompletionCallback& callback) {
std::unique_ptr<BlimpConnection> TCPEngineTransport::TakeConnection() {
DCHECK(connect_callback_.is_null());
DCHECK(accepted_socket_);
- return base::WrapUnique(
- new StreamSocketConnection(std::move(accepted_socket_)));
+ return base::WrapUnique(new StreamSocketConnection(
+ std::move(accepted_socket_), blimp_connection_statistics_));
}
const char* TCPEngineTransport::GetName() const {
« no previous file with comments | « blimp/net/tcp_engine_transport.h ('k') | blimp/net/tcp_transport_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698