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

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

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/tcp_server_socket_impl.cc ('k') | mojo/services/network/udp_socket_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
};
« no previous file with comments | « mojo/services/network/tcp_server_socket_impl.cc ('k') | mojo/services/network/udp_socket_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698