1 // Copyright (c) 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.h"
7 #include "content/browser/loader/navigation_url_loader_delegate.h"
8 #include "content/public/browser/stream_handle.h"
12 TestNavigationURLLoader::TestNavigationURLLoader(
13 scoped_ptr
<NavigationRequestInfo
> request_info
,
14 NavigationURLLoaderDelegate
* delegate
)
15 : request_info_(request_info
.Pass()),
20 void TestNavigationURLLoader::FollowRedirect() {
24 void TestNavigationURLLoader::CallOnRequestRedirected(
25 const net::RedirectInfo
& redirect_info
,
26 const scoped_refptr
<ResourceResponse
>& response
) {
27 delegate_
->OnRequestRedirected(redirect_info
, response
);
30 void TestNavigationURLLoader::CallOnResponseStarted(
31 const scoped_refptr
<ResourceResponse
>& response
,
32 scoped_ptr
<StreamHandle
> body
) {
33 delegate_
->OnResponseStarted(response
, body
.Pass());
36 TestNavigationURLLoader::~TestNavigationURLLoader() {}
38 } // namespace content