summaryrefslogtreecommitdiffstats
path: root/blimp/net/stream_socket_connection.cc
blob: 73a8cd788699248c31b5698215b8799c931fbf54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "blimp/net/stream_socket_connection.h"

#include "blimp/net/stream_packet_reader.h"
#include "blimp/net/stream_packet_writer.h"

namespace blimp {

StreamSocketConnection::StreamSocketConnection(
    scoped_ptr<net::StreamSocket> socket)
    : BlimpConnection(make_scoped_ptr(new StreamPacketReader(socket.get())),
                      make_scoped_ptr(new StreamPacketWriter(socket.get()))),
      socket_(std::move(socket)) {
  DCHECK(socket_);
}

StreamSocketConnection::~StreamSocketConnection() {}

}  // namespace blimp