Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(105)

Unified Diff: mojo/services/network/udp_socket_impl.cc

Issue 1139673003: Make Mandoline shut down cleanly. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/services/network/udp_socket_impl.h ('k') | mojo/services/network/url_loader_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/network/udp_socket_impl.cc
diff --git a/mojo/services/network/udp_socket_impl.cc b/mojo/services/network/udp_socket_impl.cc
index cc11da7c0e89fdd50f5485b4b808677da30e063f..83b480fbd1cbdb52d97c4eeb3ec698a52ada3955 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() {
« no previous file with comments | « mojo/services/network/udp_socket_impl.h ('k') | mojo/services/network/url_loader_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698