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

Unified Diff: blimp/net/stream_socket_connection.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/stream_socket_connection.h ('k') | blimp/net/tcp_client_transport.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/net/stream_socket_connection.cc
diff --git a/blimp/net/stream_socket_connection.cc b/blimp/net/stream_socket_connection.cc
index d1f63152626ead3a2399228ec6849cd0ce413ea7..8efaaaaf9e5d3e11b555055a9768d7d9ed7fef80 100644
--- a/blimp/net/stream_socket_connection.cc
+++ b/blimp/net/stream_socket_connection.cc
@@ -13,14 +13,16 @@
namespace blimp {
StreamSocketConnection::StreamSocketConnection(
- std::unique_ptr<net::StreamSocket> socket)
+ std::unique_ptr<net::StreamSocket> socket,
+ BlimpConnectionStatistics* statistics)
: BlimpConnection(
- base::WrapUnique(new CompressedPacketReader(
- base::WrapUnique(new StreamPacketReader(socket.get())))),
- base::WrapUnique(new CompressedPacketWriter(
- base::WrapUnique(new StreamPacketWriter(socket.get()))))),
+ base::WrapUnique(new CompressedPacketReader(base::WrapUnique(
+ new StreamPacketReader(socket.get(), statistics)))),
+ base::WrapUnique(new CompressedPacketWriter(base::WrapUnique(
+ new StreamPacketWriter(socket.get(), statistics))))),
socket_(std::move(socket)) {
DCHECK(socket_);
+ DCHECK(statistics);
}
StreamSocketConnection::~StreamSocketConnection() {}
« no previous file with comments | « blimp/net/stream_socket_connection.h ('k') | blimp/net/tcp_client_transport.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698