| 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 uint32_t process_id) |
| 16 : context_(context), process_id_(process_id) { |
| 17 ignore_result(process_id_); |
| 18 } |
| 16 | 19 |
| 17 NetworkServiceURLLoaderFactoryImpl::~NetworkServiceURLLoaderFactoryImpl() = | 20 NetworkServiceURLLoaderFactoryImpl::~NetworkServiceURLLoaderFactoryImpl() = |
| 18 default; | 21 default; |
| 19 | 22 |
| 20 void NetworkServiceURLLoaderFactoryImpl::CreateLoaderAndStart( | 23 void NetworkServiceURLLoaderFactoryImpl::CreateLoaderAndStart( |
| 21 mojom::URLLoaderAssociatedRequest request, | 24 mojom::URLLoaderAssociatedRequest request, |
| 22 int32_t routing_id, | 25 int32_t routing_id, |
| 23 int32_t request_id, | 26 int32_t request_id, |
| 24 uint32_t options, | 27 uint32_t options, |
| 25 const ResourceRequest& url_request, | 28 const ResourceRequest& url_request, |
| 26 mojom::URLLoaderClientPtr client) { | 29 mojom::URLLoaderClientPtr client) { |
| 27 new URLLoaderImpl(context_, std::move(request), options, url_request, | 30 new URLLoaderImpl(context_, std::move(request), options, url_request, |
| 28 std::move(client)); | 31 std::move(client)); |
| 29 } | 32 } |
| 30 | 33 |
| 31 void NetworkServiceURLLoaderFactoryImpl::SyncLoad( | 34 void NetworkServiceURLLoaderFactoryImpl::SyncLoad( |
| 32 int32_t routing_id, | 35 int32_t routing_id, |
| 33 int32_t request_id, | 36 int32_t request_id, |
| 34 const ResourceRequest& url_request, | 37 const ResourceRequest& url_request, |
| 35 SyncLoadCallback callback) { | 38 SyncLoadCallback callback) { |
| 36 NOTIMPLEMENTED(); | 39 NOTIMPLEMENTED(); |
| 37 | 40 |
| 38 SyncLoadResult result; | 41 SyncLoadResult result; |
| 39 result.error_code = net::ERR_NOT_IMPLEMENTED; | 42 result.error_code = net::ERR_NOT_IMPLEMENTED; |
| 40 std::move(callback).Run(result); | 43 std::move(callback).Run(result); |
| 41 } | 44 } |
| 42 | 45 |
| 43 } // namespace content | 46 } // namespace content |
| OLD | NEW |