Index: mojo/services/network/udp_socket_impl.h |
diff --git a/mojo/services/network/udp_socket_impl.h b/mojo/services/network/udp_socket_impl.h |
index c2070bf54cf6edb5c58a80f6a3acdc3690f517bc..2c5a36ad630369f74908959eb25d331268250fc1 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); |
}; |