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 "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "blimp/net/blimp_connection.h" | 9 #include "blimp/net/blimp_connection.h" |
10 #include "net/socket/stream_socket.h" | 10 #include "net/socket/stream_socket.h" |
11 | 11 |
12 namespace net { | 12 namespace net { |
13 class StreamSocket; | 13 class StreamSocket; |
14 } // namespace net | 14 } // namespace net |
15 | 15 |
16 namespace blimp { | 16 namespace blimp { |
17 | 17 |
18 // BlimpConnection specialization for StreamSocket-based connections. | 18 // BlimpConnection specialization for StreamSocket-based connections. |
19 class StreamSocketConnection : public BlimpConnection { | 19 class StreamSocketConnection : public BlimpConnection { |
20 public: | 20 public: |
21 explicit StreamSocketConnection(scoped_ptr<net::StreamSocket> socket); | 21 explicit StreamSocketConnection(scoped_ptr<net::StreamSocket> socket); |
22 | 22 ~StreamSocketConnection(); |
Wez
2015/11/12 03:45:57
This seems dubious; if BlimpConnection can be deri
Kevin M
2015/11/12 19:03:47
Done.
Wez
2015/11/12 20:12:55
I actually meant BlimpConnection's dtor - it's sti
| |
23 ~StreamSocketConnection() override; | |
24 | 23 |
25 private: | 24 private: |
26 scoped_ptr<net::StreamSocket> socket_; | 25 scoped_ptr<net::StreamSocket> socket_; |
27 }; | 26 }; |
28 | 27 |
29 } // namespace blimp | 28 } // namespace blimp |
30 | 29 |
31 #endif // BLIMP_NET_STREAM_SOCKET_CONNECTION_H_ | 30 #endif // BLIMP_NET_STREAM_SOCKET_CONNECTION_H_ |
OLD | NEW |