| Index: mojo/services/network/tcp_server_socket_impl.h
|
| diff --git a/mojo/services/network/tcp_server_socket_impl.h b/mojo/services/network/tcp_server_socket_impl.h
|
| index 0039f8d3e815ae3d621fee86519a7c1eebf14498..324697cdf343f06d5371e95205383f3036ab7ae1 100644
|
| --- a/mojo/services/network/tcp_server_socket_impl.h
|
| +++ b/mojo/services/network/tcp_server_socket_impl.h
|
| @@ -9,16 +9,17 @@
|
| #include "mojo/services/network/public/interfaces/tcp_server_socket.mojom.h"
|
| #include "net/base/ip_endpoint.h"
|
| #include "net/socket/tcp_socket.h"
|
| -#include "third_party/mojo/src/mojo/public/cpp/bindings/interface_impl.h"
|
| +#include "third_party/mojo/src/mojo/public/cpp/bindings/strong_binding.h"
|
|
|
| namespace mojo {
|
|
|
| -class TCPServerSocketImpl : public InterfaceImpl<TCPServerSocket> {
|
| +class TCPServerSocketImpl : public TCPServerSocket {
|
| public:
|
| typedef Callback<void(NetworkErrorPtr, NetAddressPtr)> AcceptCallback;
|
|
|
| // Passed ownership of a socket already in listening mode.
|
| - explicit TCPServerSocketImpl(scoped_ptr<net::TCPSocket> socket);
|
| + TCPServerSocketImpl(InterfaceRequest<TCPServerSocket> request,
|
| + scoped_ptr<net::TCPSocket> socket);
|
| ~TCPServerSocketImpl() override;
|
|
|
| // TCPServerSocket.
|
| @@ -30,6 +31,7 @@ class TCPServerSocketImpl : public InterfaceImpl<TCPServerSocket> {
|
| private:
|
| void OnAcceptCompleted(int result);
|
|
|
| + StrongBinding<TCPServerSocket> binding_;
|
| scoped_ptr<net::TCPSocket> socket_;
|
|
|
| // Non-null when accept is pending.
|
|
|