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

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

Issue 880613005: De-Clientize UDPSocket service (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@rollin
Patch Set: Created 5 years, 11 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 | « no previous file | mojo/services/network/public/cpp/udp_socket_wrapper.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/network/network_service_impl.cc
diff --git a/mojo/services/network/network_service_impl.cc b/mojo/services/network/network_service_impl.cc
index 64eb3370f89054627ec2cd3bd732dd7c84345958..ed4db49930c1425e4775b12c00f84958ff9bd866 100644
--- a/mojo/services/network/network_service_impl.cc
+++ b/mojo/services/network/network_service_impl.cc
@@ -66,8 +66,9 @@ void NetworkServiceImpl::CreateTCPConnectedSocket(
callback.Run(MakeNetworkError(net::ERR_NOT_IMPLEMENTED), NetAddressPtr());
}
-void NetworkServiceImpl::CreateUDPSocket(InterfaceRequest<UDPSocket> socket) {
- BindToRequest(new UDPSocketImpl(), &socket);
+void NetworkServiceImpl::CreateUDPSocket(InterfaceRequest<UDPSocket> request) {
+ // The lifetime of this UDPSocketImpl is bound to that of the underlying pipe.
+ new UDPSocketImpl(request.Pass());
}
} // namespace mojo
« no previous file with comments | « no previous file | mojo/services/network/public/cpp/udp_socket_wrapper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698