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

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

Issue 858093002: Update the network service from the Mojo repo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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 | « mojo/services/network/network_service.cc ('k') | mojo/services/network/tcp_connected_socket_impl.cc » ('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 6f2f5502d645d78dbf466e2e3558922814fe6d0f..708208a2b8159d11a7e1813e5560096bfb737a14 100644
--- a/mojo/services/network/network_service_impl.cc
+++ b/mojo/services/network/network_service_impl.cc
@@ -25,7 +25,10 @@ NetworkServiceImpl::~NetworkServiceImpl() {
void NetworkServiceImpl::CreateURLLoader(InterfaceRequest<URLLoader> loader) {
// TODO(darin): Plumb origin_. Use for CORS.
- BindToRequest(new URLLoaderImpl(context_), &loader);
+ // The loader will delete itself when the pipe is closed, unless a request is
+ // in progress. In which case, the loader will delete itself when the request
+ // is finished.
+ new URLLoaderImpl(context_, loader.Pass());
}
void NetworkServiceImpl::GetCookieStore(InterfaceRequest<CookieStore> store) {
« no previous file with comments | « mojo/services/network/network_service.cc ('k') | mojo/services/network/tcp_connected_socket_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698