| Index: mojo/services/network/tcp_connected_socket_impl.h
|
| diff --git a/mojo/services/network/tcp_connected_socket_impl.h b/mojo/services/network/tcp_connected_socket_impl.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..5c24011344758a1deaba44762d8e163ce5c99ffd
|
| --- /dev/null
|
| +++ b/mojo/services/network/tcp_connected_socket_impl.h
|
| @@ -0,0 +1,30 @@
|
| +// Copyright 2014 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.
|
| +
|
| +#ifndef MOJO_SERVICES_NETWORK_TCP_CONNECTED_SOCKET_H_
|
| +#define MOJO_SERVICES_NETWORK_TCP_CONNECTED_SOCKET_H_
|
| +
|
| +#include "base/memory/scoped_ptr.h"
|
| +#include "mojo/public/cpp/bindings/interface_impl.h"
|
| +#include "mojo/services/public/interfaces/network/tcp_connected_socket.mojom.h"
|
| +#include "net/socket/tcp_socket.h"
|
| +
|
| +namespace mojo {
|
| +
|
| +class TCPConnectedSocketImpl : public InterfaceImpl<TCPConnectedSocket> {
|
| + public:
|
| + TCPConnectedSocketImpl(scoped_ptr<net::TCPSocket> socket,
|
| + ScopedDataPipeConsumerHandle send_stream,
|
| + ScopedDataPipeProducerHandle receive_stream);
|
| + virtual ~TCPConnectedSocketImpl();
|
| +
|
| + private:
|
| + scoped_ptr<net::TCPSocket> socket_;
|
| + ScopedDataPipeConsumerHandle send_stream_;
|
| + ScopedDataPipeProducerHandle receive_stream_;
|
| +};
|
| +
|
| +} // namespace mojo
|
| +
|
| +#endif // MOJO_SERVICES_NETWORK_TCP_CONNECTED_SOCKET_H_
|
|
|