OLD | NEW |
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 |
OLD | NEW |