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