OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 "content/network/network_service_url_loader_factory_impl.h" | 5 #include "content/network/network_service_url_loader_factory_impl.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "content/common/resource_request.h" | 8 #include "content/common/resource_request.h" |
9 #include "content/network/url_loader_impl.h" | 9 #include "content/network/url_loader_impl.h" |
10 | 10 |
11 namespace content { | 11 namespace content { |
12 | 12 |
13 NetworkServiceURLLoaderFactoryImpl::NetworkServiceURLLoaderFactoryImpl( | 13 NetworkServiceURLLoaderFactoryImpl::NetworkServiceURLLoaderFactoryImpl( |
14 NetworkContext* context) | 14 NetworkContext* context) |
15 : context_(context) {} | 15 : context_(context) {} |
16 | 16 |
17 NetworkServiceURLLoaderFactoryImpl::~NetworkServiceURLLoaderFactoryImpl() = | 17 NetworkServiceURLLoaderFactoryImpl::~NetworkServiceURLLoaderFactoryImpl() = |
18 default; | 18 default; |
19 | 19 |
20 void NetworkServiceURLLoaderFactoryImpl::CreateLoaderAndStart( | 20 void NetworkServiceURLLoaderFactoryImpl::CreateLoaderAndStart( |
21 mojom::URLLoaderAssociatedRequest request, | 21 mojom::URLLoaderAssociatedRequest request, |
22 int32_t routing_id, | 22 int32_t routing_id, |
23 int32_t request_id, | 23 int32_t request_id, |
| 24 uint32_t options, |
24 const ResourceRequest& url_request, | 25 const ResourceRequest& url_request, |
25 mojom::URLLoaderClientPtr client) { | 26 mojom::URLLoaderClientPtr client) { |
26 new URLLoaderImpl(context_, std::move(request), url_request, | 27 new URLLoaderImpl(context_, std::move(request), options, url_request, |
27 std::move(client)); | 28 std::move(client)); |
28 } | 29 } |
29 | 30 |
30 void NetworkServiceURLLoaderFactoryImpl::SyncLoad( | 31 void NetworkServiceURLLoaderFactoryImpl::SyncLoad( |
31 int32_t routing_id, | 32 int32_t routing_id, |
32 int32_t request_id, | 33 int32_t request_id, |
33 const ResourceRequest& url_request, | 34 const ResourceRequest& url_request, |
34 const SyncLoadCallback& callback) { | 35 const SyncLoadCallback& callback) { |
35 NOTIMPLEMENTED(); | 36 NOTIMPLEMENTED(); |
36 | 37 |
37 SyncLoadResult result; | 38 SyncLoadResult result; |
38 result.error_code = net::ERR_NOT_IMPLEMENTED; | 39 result.error_code = net::ERR_NOT_IMPLEMENTED; |
39 callback.Run(result); | 40 callback.Run(result); |
40 } | 41 } |
41 | 42 |
42 } // namespace content | 43 } // namespace content |
OLD | NEW |