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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "blimp/net/stream_socket_connection.h" 5 #include "blimp/net/stream_socket_connection.h"
6 6
7 #include "base/memory/ptr_util.h" 7 #include "base/memory/ptr_util.h"
8 #include "blimp/net/compressed_packet_reader.h" 8 #include "blimp/net/compressed_packet_reader.h"
9 #include "blimp/net/compressed_packet_writer.h" 9 #include "blimp/net/compressed_packet_writer.h"
10 #include "blimp/net/stream_packet_reader.h" 10 #include "blimp/net/stream_packet_reader.h"
11 #include "blimp/net/stream_packet_writer.h" 11 #include "blimp/net/stream_packet_writer.h"
12 12
13 namespace blimp { 13 namespace blimp {
14 14
15 StreamSocketConnection::StreamSocketConnection( 15 StreamSocketConnection::StreamSocketConnection(
16 std::unique_ptr<net::StreamSocket> socket) 16 std::unique_ptr<net::StreamSocket> socket,
17 BlimpConnectionStatistics* statistics)
17 : BlimpConnection( 18 : BlimpConnection(
18 base::WrapUnique(new CompressedPacketReader( 19 base::WrapUnique(new CompressedPacketReader(base::WrapUnique(
19 base::WrapUnique(new StreamPacketReader(socket.get())))), 20 new StreamPacketReader(socket.get(), statistics)))),
20 base::WrapUnique(new CompressedPacketWriter( 21 base::WrapUnique(new CompressedPacketWriter(base::WrapUnique(
21 base::WrapUnique(new StreamPacketWriter(socket.get()))))), 22 new StreamPacketWriter(socket.get(), statistics))))),
22 socket_(std::move(socket)) { 23 socket_(std::move(socket)) {
23 DCHECK(socket_); 24 DCHECK(socket_);
25 DCHECK(statistics);
24 } 26 }
25 27
26 StreamSocketConnection::~StreamSocketConnection() {} 28 StreamSocketConnection::~StreamSocketConnection() {}
27 29
28 } // namespace blimp 30 } // namespace blimp
OLDNEW
« 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