OLD | NEW |
(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_impl.h" |
| 6 |
| 7 #include "content/browser/frame_host/navigation_request_info.h" |
| 8 #include "content/browser/loader/navigation_url_loader_core.h" |
| 9 |
| 10 namespace content { |
| 11 |
| 12 NavigationURLLoaderImpl::NavigationURLLoaderImpl( |
| 13 BrowserContext* browser_context, |
| 14 int64 frame_tree_node_id, |
| 15 const CommonNavigationParams& common_params, |
| 16 scoped_ptr<NavigationRequestInfo> request_info, |
| 17 ResourceRequestBody* request_body, |
| 18 NavigationURLLoader::Delegate* delegate) |
| 19 : core_(new NavigationURLLoaderCore) { |
| 20 core_->set_delegate(delegate); |
| 21 core_->StartRequest(browser_context, frame_tree_node_id, |
| 22 common_params, request_info.Pass(), request_body); |
| 23 } |
| 24 |
| 25 NavigationURLLoaderImpl::~NavigationURLLoaderImpl() { |
| 26 core_->Cancel(); |
| 27 core_->set_delegate(NULL); |
| 28 } |
| 29 |
| 30 void NavigationURLLoaderImpl::FollowRedirect() { |
| 31 core_->FollowRedirect(); |
| 32 } |
| 33 |
| 34 } // namespace content |
OLD | NEW |