OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/browser/loader/url_loader_factory_impl.h" | 5 #include "content/browser/loader/url_loader_factory_impl.h" |
6 | 6 |
| 7 #include "base/memory/ptr_util.h" |
7 #include "content/browser/loader/resource_dispatcher_host_impl.h" | 8 #include "content/browser/loader/resource_dispatcher_host_impl.h" |
8 #include "content/browser/loader/resource_requester_info.h" | 9 #include "content/browser/loader/resource_requester_info.h" |
9 #include "content/common/resource_request.h" | 10 #include "content/common/resource_request.h" |
10 #include "content/common/url_loader.mojom.h" | 11 #include "content/common/url_loader.mojom.h" |
11 #include "content/public/browser/browser_thread.h" | 12 #include "content/public/browser/browser_thread.h" |
12 #include "mojo/public/cpp/bindings/strong_binding.h" | 13 #include "mojo/public/cpp/bindings/strong_binding.h" |
13 | 14 |
14 namespace content { | 15 namespace content { |
15 | 16 |
16 namespace { | 17 namespace { |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 | 98 |
98 void URLLoaderFactoryImpl::Create( | 99 void URLLoaderFactoryImpl::Create( |
99 scoped_refptr<ResourceRequesterInfo> requester_info, | 100 scoped_refptr<ResourceRequesterInfo> requester_info, |
100 mojo::InterfaceRequest<mojom::URLLoaderFactory> request) { | 101 mojo::InterfaceRequest<mojom::URLLoaderFactory> request) { |
101 mojo::MakeStrongBinding( | 102 mojo::MakeStrongBinding( |
102 base::WrapUnique(new URLLoaderFactoryImpl(std::move(requester_info))), | 103 base::WrapUnique(new URLLoaderFactoryImpl(std::move(requester_info))), |
103 std::move(request)); | 104 std::move(request)); |
104 } | 105 } |
105 | 106 |
106 } // namespace content | 107 } // namespace content |
OLD | NEW |