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/browser/loader/navigation_url_loader.h" | 5 #include "content/browser/loader/navigation_url_loader.h" |
6 | 6 |
7 #include "content/browser/frame_host/navigation_request_info.h" | 7 #include "content/browser/frame_host/navigation_request_info.h" |
8 #include "content/browser/loader/navigation_url_loader_factory.h" | 8 #include "content/browser/loader/navigation_url_loader_factory.h" |
9 #include "content/browser/loader/navigation_url_loader_impl.h" | 9 #include "content/browser/loader/navigation_url_loader_impl.h" |
10 | 10 |
(...skipping 13 matching lines...) Expand all Loading... |
24 common_params, request_info.Pass(), | 24 common_params, request_info.Pass(), |
25 request_body, delegate); | 25 request_body, delegate); |
26 } | 26 } |
27 return scoped_ptr<NavigationURLLoader>(new NavigationURLLoaderImpl( | 27 return scoped_ptr<NavigationURLLoader>(new NavigationURLLoaderImpl( |
28 browser_context, frame_tree_node_id, common_params, request_info.Pass(), | 28 browser_context, frame_tree_node_id, common_params, request_info.Pass(), |
29 request_body, delegate)); | 29 request_body, delegate)); |
30 } | 30 } |
31 | 31 |
32 void NavigationURLLoader::SetFactoryForTesting( | 32 void NavigationURLLoader::SetFactoryForTesting( |
33 NavigationURLLoaderFactory* factory) { | 33 NavigationURLLoaderFactory* factory) { |
| 34 DCHECK(g_factory == nullptr || factory == nullptr); |
34 g_factory = factory; | 35 g_factory = factory; |
35 } | 36 } |
36 | 37 |
37 } // namespace content | 38 } // namespace content |
OLD | NEW |