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

Unified Diff: mojo/services/network/tcp_bound_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/network_service_impl.cc ('k') | mojo/services/network/tcp_bound_socket_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/network/tcp_bound_socket_impl.h
diff --git a/mojo/services/network/tcp_bound_socket_impl.h b/mojo/services/network/tcp_bound_socket_impl.h
index e5e1b6c251a783d4559d5a94eb3eff34bd686756..b6609c58a04b1cb6acb7941d33fdc9f545fe509f 100644
--- a/mojo/services/network/tcp_bound_socket_impl.h
+++ b/mojo/services/network/tcp_bound_socket_impl.h
@@ -6,6 +6,7 @@
#define MOJO_SERVICES_NETWORK_TCP_BOUND_SOCKET_H_
#include "base/memory/scoped_ptr.h"
+#include "mojo/application/app_lifetime_helper.h"
#include "mojo/services/network/public/interfaces/tcp_bound_socket.mojom.h"
#include "net/socket/tcp_socket.h"
#include "third_party/mojo/src/mojo/public/cpp/bindings/interface_impl.h"
@@ -14,7 +15,7 @@ namespace mojo {
class TCPBoundSocketImpl : public InterfaceImpl<TCPBoundSocket> {
public:
- TCPBoundSocketImpl();
+ explicit TCPBoundSocketImpl(scoped_ptr<mojo::AppRefCount> app_refcount);
~TCPBoundSocketImpl() override;
// Does the actual binding. Returns a net error code. On net::OK, the bound
@@ -45,6 +46,7 @@ class TCPBoundSocketImpl : public InterfaceImpl<TCPBoundSocket> {
ScopedDataPipeProducerHandle pending_connect_receive_stream_;
InterfaceRequest<TCPConnectedSocket> pending_connect_socket_;
Callback<void(NetworkErrorPtr)> pending_connect_callback_;
+ scoped_ptr<mojo::AppRefCount> app_refcount_;
};
} // namespace mojo
« no previous file with comments | « mojo/services/network/network_service_impl.cc ('k') | mojo/services/network/tcp_bound_socket_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698