summaryrefslogtreecommitdiffstats
path: root/mojo/services/network/udp_socket_impl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'mojo/services/network/udp_socket_impl.cc')
-rw-r--r--mojo/services/network/udp_socket_impl.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/mojo/services/network/udp_socket_impl.cc b/mojo/services/network/udp_socket_impl.cc
index cc11da7..83b480f 100644
--- a/mojo/services/network/udp_socket_impl.cc
+++ b/mojo/services/network/udp_socket_impl.cc
@@ -34,7 +34,8 @@ UDPSocketImpl::PendingSendRequest::PendingSendRequest() {}
UDPSocketImpl::PendingSendRequest::~PendingSendRequest() {}
-UDPSocketImpl::UDPSocketImpl(InterfaceRequest<UDPSocket> request)
+UDPSocketImpl::UDPSocketImpl(InterfaceRequest<UDPSocket> request,
+ scoped_ptr<mojo::AppRefCount> app_refcount)
: binding_(this, request.Pass()),
socket_(net::DatagramSocket::DEFAULT_BIND,
net::RandIntCallback(),
@@ -43,7 +44,8 @@ UDPSocketImpl::UDPSocketImpl(InterfaceRequest<UDPSocket> request)
state_(NOT_BOUND_OR_CONNECTED),
allow_address_reuse_(false),
remaining_recv_slots_(0),
- max_pending_send_requests_(kDefaultMaxPendingSendRequests) {
+ max_pending_send_requests_(kDefaultMaxPendingSendRequests),
+ app_refcount_(app_refcount.Pass()) {
}
UDPSocketImpl::~UDPSocketImpl() {