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 "content/test/test_navigation_url_loader_factory.h" | 5 #include "content/test/test_navigation_url_loader_factory.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "content/browser/loader/navigation_url_loader.h" | 9 #include "content/browser/loader/navigation_url_loader.h" |
| 10 #include "content/public/browser/navigation_ui_data.h" |
10 #include "content/test/test_navigation_url_loader.h" | 11 #include "content/test/test_navigation_url_loader.h" |
11 | 12 |
12 namespace content { | 13 namespace content { |
13 | 14 |
14 TestNavigationURLLoaderFactory::TestNavigationURLLoaderFactory() { | 15 TestNavigationURLLoaderFactory::TestNavigationURLLoaderFactory() { |
15 NavigationURLLoader::SetFactoryForTesting(this); | 16 NavigationURLLoader::SetFactoryForTesting(this); |
16 } | 17 } |
17 | 18 |
18 TestNavigationURLLoaderFactory::~TestNavigationURLLoaderFactory() { | 19 TestNavigationURLLoaderFactory::~TestNavigationURLLoaderFactory() { |
19 NavigationURLLoader::SetFactoryForTesting(NULL); | 20 NavigationURLLoader::SetFactoryForTesting(NULL); |
20 } | 21 } |
21 | 22 |
22 std::unique_ptr<NavigationURLLoader> | 23 std::unique_ptr<NavigationURLLoader> |
23 TestNavigationURLLoaderFactory::CreateLoader( | 24 TestNavigationURLLoaderFactory::CreateLoader( |
24 BrowserContext* browser_context, | 25 BrowserContext* browser_context, |
25 std::unique_ptr<NavigationRequestInfo> request_info, | 26 std::unique_ptr<NavigationRequestInfo> request_info, |
| 27 std::unique_ptr<NavigationUIData> navigation_ui_data, |
26 ServiceWorkerNavigationHandle* service_worker_handle, | 28 ServiceWorkerNavigationHandle* service_worker_handle, |
27 NavigationURLLoaderDelegate* delegate) { | 29 NavigationURLLoaderDelegate* delegate) { |
28 return std::unique_ptr<NavigationURLLoader>( | 30 return std::unique_ptr<NavigationURLLoader>( |
29 new TestNavigationURLLoader(std::move(request_info), delegate)); | 31 new TestNavigationURLLoader(std::move(request_info), delegate)); |
30 } | 32 } |
31 | 33 |
32 } // namespace content | 34 } // namespace content |
OLD | NEW |