Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1124)

Side by Side Diff: content/test/test_navigation_url_loader_factory.cc

Issue 872473003: PlzNavigate: Remove the RequestNavigation IPC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed nits + fix compilation error Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "content/browser/loader/navigation_url_loader.h" 7 #include "content/browser/loader/navigation_url_loader.h"
8 #include "content/test/test_navigation_url_loader.h" 8 #include "content/test/test_navigation_url_loader.h"
9 9
10 namespace content { 10 namespace content {
11 11
12 TestNavigationURLLoaderFactory::TestNavigationURLLoaderFactory() { 12 TestNavigationURLLoaderFactory::TestNavigationURLLoaderFactory() {
13 NavigationURLLoader::SetFactoryForTesting(this); 13 NavigationURLLoader::SetFactoryForTesting(this);
14 } 14 }
15 15
16 TestNavigationURLLoaderFactory::~TestNavigationURLLoaderFactory() { 16 TestNavigationURLLoaderFactory::~TestNavigationURLLoaderFactory() {
17 NavigationURLLoader::SetFactoryForTesting(NULL); 17 NavigationURLLoader::SetFactoryForTesting(NULL);
18 } 18 }
19 19
20 scoped_ptr<NavigationURLLoader> TestNavigationURLLoaderFactory::CreateLoader( 20 scoped_ptr<NavigationURLLoader> TestNavigationURLLoaderFactory::CreateLoader(
21 BrowserContext* browser_context, 21 BrowserContext* browser_context,
22 int64 frame_tree_node_id, 22 int64 frame_tree_node_id,
23 const CommonNavigationParams& common_params,
24 scoped_ptr<NavigationRequestInfo> request_info, 23 scoped_ptr<NavigationRequestInfo> request_info,
25 ResourceRequestBody* request_body,
26 NavigationURLLoaderDelegate* delegate) { 24 NavigationURLLoaderDelegate* delegate) {
27 return scoped_ptr<NavigationURLLoader>(new TestNavigationURLLoader( 25 return scoped_ptr<NavigationURLLoader>(new TestNavigationURLLoader(
28 common_params, request_info.Pass(), delegate)); 26 request_info.Pass(), delegate));
29 } 27 }
30 28
31 } // namespace content 29 } // namespace content
OLDNEW
« no previous file with comments | « content/test/test_navigation_url_loader_factory.h ('k') | content/test/test_render_frame_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698