| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef BLIMP_NET_STREAM_SOCKET_CONNECTION_H_ | |
| 6 #define BLIMP_NET_STREAM_SOCKET_CONNECTION_H_ | |
| 7 | |
| 8 #include <memory> | |
| 9 | |
| 10 #include "blimp/net/blimp_connection.h" | |
| 11 #include "net/socket/stream_socket.h" | |
| 12 | |
| 13 namespace net { | |
| 14 class StreamSocket; | |
| 15 } // namespace net | |
| 16 | |
| 17 namespace blimp { | |
| 18 | |
| 19 // BlimpConnection specialization for StreamSocket-based connections. | |
| 20 class StreamSocketConnection : public BlimpConnection { | |
| 21 public: | |
| 22 explicit StreamSocketConnection(std::unique_ptr<net::StreamSocket> socket); | |
| 23 | |
| 24 ~StreamSocketConnection() override; | |
| 25 | |
| 26 private: | |
| 27 std::unique_ptr<net::StreamSocket> socket_; | |
| 28 }; | |
| 29 | |
| 30 } // namespace blimp | |
| 31 | |
| 32 #endif // BLIMP_NET_STREAM_SOCKET_CONNECTION_H_ | |
| OLD | NEW |