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

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

Issue 380413003: Mojo: Use InterfaceFactory<Interface> for service registration (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: some InterfaceProvider impls for common cases Created 6 years, 5 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 | Annotate | Revision Log
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/url_loader_impl.h" 7 #include "mojo/services/network/url_loader_impl.h"
8 8
9 namespace mojo { 9 namespace mojo {
10 10
11 NetworkServiceImpl::NetworkServiceImpl(ApplicationConnection* connection, 11 NetworkServiceImpl::NetworkServiceImpl(NetworkContext* context)
12 NetworkContext* context)
13 : context_(context) { 12 : context_(context) {
14 } 13 }
15 14
16 NetworkServiceImpl::~NetworkServiceImpl() { 15 NetworkServiceImpl::~NetworkServiceImpl() {
17 } 16 }
18 17
19 void NetworkServiceImpl::CreateURLLoader(InterfaceRequest<URLLoader> loader) { 18 void NetworkServiceImpl::CreateURLLoader(InterfaceRequest<URLLoader> loader) {
20 BindToRequest(new URLLoaderImpl(context_), &loader); 19 BindToRequest(new URLLoaderImpl(context_), &loader);
21 } 20 }
22 21
23 } // namespace mojo 22 } // namespace mojo
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698