diff options
Diffstat (limited to 'mojo/services/network/udp_socket_impl.h')
-rw-r--r-- | mojo/services/network/udp_socket_impl.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/mojo/services/network/udp_socket_impl.h b/mojo/services/network/udp_socket_impl.h index c2070bf..2c5a36a 100644 --- a/mojo/services/network/udp_socket_impl.h +++ b/mojo/services/network/udp_socket_impl.h @@ -9,6 +9,7 @@ #include "base/macros.h" #include "base/memory/ref_counted.h" +#include "mojo/application/app_lifetime_helper.h" #include "mojo/services/network/public/interfaces/udp_socket.mojom.h" #include "net/base/ip_endpoint.h" #include "net/udp/udp_socket.h" @@ -26,7 +27,8 @@ class UDPSocketImpl : public UDPSocket { public: // The lifetime of a new UDPSocketImpl is bound to the connection associated // with |request|. - explicit UDPSocketImpl(InterfaceRequest<UDPSocket> request); + UDPSocketImpl(InterfaceRequest<UDPSocket> request, + scoped_ptr<mojo::AppRefCount> app_refcount); ~UDPSocketImpl() override; // UDPSocket implementation. @@ -119,6 +121,8 @@ class UDPSocketImpl : public UDPSocket { // The maximum size of the |pending_send_requests_| queue. size_t max_pending_send_requests_; + scoped_ptr<mojo::AppRefCount> app_refcount_; + DISALLOW_COPY_AND_ASSIGN(UDPSocketImpl); }; |