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

Side by Side Diff: content/browser/loader/navigation_url_loader.cc

Issue 519533002: Initial PlzNavigate RDH-side logic. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix tests Created 6 years, 2 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "content/browser/loader/navigation_url_loader.h"
6
7 #include "content/browser/frame_host/navigation_request_info.h"
8 #include "content/browser/loader/navigation_url_loader_factory.h"
9 #include "content/browser/loader/navigation_url_loader_impl.h"
10
11 namespace content {
12
13 static NavigationURLLoaderFactory* g_factory = NULL;
14
15 scoped_ptr<NavigationURLLoader> NavigationURLLoader::Create(
16 BrowserContext* browser_context,
17 int64 frame_tree_node_id,
18 const CommonNavigationParams& common_params,
19 scoped_ptr<NavigationRequestInfo> request_info,
20 ResourceRequestBody* request_body,
21 Delegate* delegate) {
22 if (g_factory) {
23 return g_factory->CreateLoader(browser_context, frame_tree_node_id,
24 common_params, request_info.Pass(),
25 request_body, delegate);
26 }
27 return scoped_ptr<NavigationURLLoader>(new NavigationURLLoaderImpl(
28 browser_context, frame_tree_node_id, common_params, request_info.Pass(),
29 request_body, delegate));
30 }
31
32 void NavigationURLLoader::SetFactoryForTesting(
33 NavigationURLLoaderFactory* factory) {
34 g_factory = factory;
35 }
36
37 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/loader/navigation_url_loader.h ('k') | content/browser/loader/navigation_url_loader_core.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698