| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2014 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 MOJO_SERVICES_NETWORK_TCP_CONNECTED_SOCKET_H_ |
| 6 #define MOJO_SERVICES_NETWORK_TCP_CONNECTED_SOCKET_H_ |
| 7 |
| 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "mojo/public/cpp/bindings/interface_impl.h" |
| 10 #include "mojo/services/public/interfaces/network/tcp_connected_socket.mojom.h" |
| 11 #include "net/socket/tcp_socket.h" |
| 12 |
| 13 namespace mojo { |
| 14 |
| 15 class TCPConnectedSocketImpl : public InterfaceImpl<TCPConnectedSocket> { |
| 16 public: |
| 17 TCPConnectedSocketImpl(scoped_ptr<net::TCPSocket> socket, |
| 18 ScopedDataPipeConsumerHandle send_stream, |
| 19 ScopedDataPipeProducerHandle receive_stream); |
| 20 virtual ~TCPConnectedSocketImpl(); |
| 21 |
| 22 private: |
| 23 scoped_ptr<net::TCPSocket> socket_; |
| 24 ScopedDataPipeConsumerHandle send_stream_; |
| 25 ScopedDataPipeProducerHandle receive_stream_; |
| 26 }; |
| 27 |
| 28 } // namespace mojo |
| 29 |
| 30 #endif // MOJO_SERVICES_NETWORK_TCP_CONNECTED_SOCKET_H_ |
| OLD | NEW |