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

Side by Side Diff: mojo/services/network/network_service_impl.cc

Issue 1841863002: Update monet. (Closed) Base URL: https://github.com/domokit/monet.git@master
Patch Set: Created 4 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "mojo/services/network/network_service_impl.h" 5 #include "mojo/services/network/network_service_impl.h"
6 6
7 #include "mojo/services/network/cookie_store_impl.h" 7 #include "mojo/services/network/cookie_store_impl.h"
8 #include "mojo/services/network/host_resolver_impl.h" 8 #include "mojo/services/network/host_resolver_impl.h"
9 #include "mojo/services/network/http_server_impl.h" 9 #include "mojo/services/network/http_server_impl.h"
10 #include "mojo/services/network/net_adapters.h" 10 #include "mojo/services/network/net_adapters.h"
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 callback.Run(MakeNetworkError(net::ERR_NOT_IMPLEMENTED), NetAddressPtr()); 79 callback.Run(MakeNetworkError(net::ERR_NOT_IMPLEMENTED), NetAddressPtr());
80 } 80 }
81 81
82 void NetworkServiceImpl::CreateUDPSocket(InterfaceRequest<UDPSocket> request) { 82 void NetworkServiceImpl::CreateUDPSocket(InterfaceRequest<UDPSocket> request) {
83 // The lifetime of this UDPSocketImpl is bound to that of the underlying pipe. 83 // The lifetime of this UDPSocketImpl is bound to that of the underlying pipe.
84 new UDPSocketImpl(request.Pass()); 84 new UDPSocketImpl(request.Pass());
85 } 85 }
86 86
87 void NetworkServiceImpl::CreateHttpServer( 87 void NetworkServiceImpl::CreateHttpServer(
88 NetAddressPtr local_address, 88 NetAddressPtr local_address,
89 HttpServerDelegatePtr delegate, 89 InterfaceHandle<HttpServerDelegate> delegate,
90 const CreateHttpServerCallback& callback) { 90 const CreateHttpServerCallback& callback) {
91 HttpServerImpl::Create(local_address.Pass(), delegate.Pass(), callback); 91 HttpServerImpl::Create(local_address.Pass(), delegate.Pass(), callback);
92 } 92 }
93 93
94 void NetworkServiceImpl::RegisterURLLoaderInterceptor( 94 void NetworkServiceImpl::RegisterURLLoaderInterceptor(
95 URLLoaderInterceptorFactoryPtr factory) { 95 InterfaceHandle<URLLoaderInterceptorFactory> factory) {
96 url_loader_interceptor_factories_.AddInterfacePtr(factory.Pass()); 96 url_loader_interceptor_factories_.AddInterfacePtr(
97 URLLoaderInterceptorFactoryPtr::Create(factory.Pass()));
97 } 98 }
98 99
99 void NetworkServiceImpl::CreateHostResolver( 100 void NetworkServiceImpl::CreateHostResolver(
100 InterfaceRequest<HostResolver> host_resolver) { 101 InterfaceRequest<HostResolver> host_resolver) {
101 // The lifetime of this HostResolverImpl is bound to that of the underlying 102 // The lifetime of this HostResolverImpl is bound to that of the underlying
102 // pipe. 103 // pipe.
103 new HostResolverImpl(host_resolver.Pass()); 104 new HostResolverImpl(host_resolver.Pass());
104 } 105 }
105 106
106 } // namespace mojo 107 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/services/network/network_service_impl.h ('k') | mojo/services/network/tcp_connected_socket_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698