Further cleanup of some assets
[chromium-blink-merge.git] / content / test / test_navigation_url_loader_factory.cc
blob812462e1f462c3313c8b3fd20601a07eb2469b06
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.
5 #include "content/test/test_navigation_url_loader_factory.h"
7 #include "content/browser/loader/navigation_url_loader.h"
8 #include "content/test/test_navigation_url_loader.h"
10 namespace content {
12 TestNavigationURLLoaderFactory::TestNavigationURLLoaderFactory() {
13 NavigationURLLoader::SetFactoryForTesting(this);
16 TestNavigationURLLoaderFactory::~TestNavigationURLLoaderFactory() {
17 NavigationURLLoader::SetFactoryForTesting(NULL);
20 scoped_ptr<NavigationURLLoader> TestNavigationURLLoaderFactory::CreateLoader(
21 BrowserContext* browser_context,
22 int frame_tree_node_id,
23 scoped_ptr<NavigationRequestInfo> request_info,
24 NavigationURLLoaderDelegate* delegate) {
25 return scoped_ptr<NavigationURLLoader>(new TestNavigationURLLoader(
26 request_info.Pass(), delegate));
29 } // namespace content