| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/browser/frame_host/navigation_handle_impl.h" | 5 #include "content/browser/frame_host/navigation_handle_impl.h" |
| 6 | 6 |
| 7 #include <iterator> | 7 #include <iterator> |
| 8 | 8 |
| 9 #include "base/debug/dump_without_crashing.h" | 9 #include "base/debug/dump_without_crashing.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 } | 186 } |
| 187 | 187 |
| 188 bool NavigationHandleImpl::IsRendererInitiated() { | 188 bool NavigationHandleImpl::IsRendererInitiated() { |
| 189 return is_renderer_initiated_; | 189 return is_renderer_initiated_; |
| 190 } | 190 } |
| 191 | 191 |
| 192 bool NavigationHandleImpl::WasServerRedirect() { | 192 bool NavigationHandleImpl::WasServerRedirect() { |
| 193 return was_redirected_; | 193 return was_redirected_; |
| 194 } | 194 } |
| 195 | 195 |
| 196 const std::vector<GURL>& NavigationHandleImpl::GetRedirectChain() { |
| 197 return redirect_chain_; |
| 198 } |
| 199 |
| 196 int NavigationHandleImpl::GetFrameTreeNodeId() { | 200 int NavigationHandleImpl::GetFrameTreeNodeId() { |
| 197 return frame_tree_node_->frame_tree_node_id(); | 201 return frame_tree_node_->frame_tree_node_id(); |
| 198 } | 202 } |
| 199 | 203 |
| 200 int NavigationHandleImpl::GetParentFrameTreeNodeId() { | 204 int NavigationHandleImpl::GetParentFrameTreeNodeId() { |
| 201 if (frame_tree_node_->IsMainFrame()) | 205 if (frame_tree_node_->IsMainFrame()) |
| 202 return FrameTreeNode::kFrameTreeNodeInvalidId; | 206 return FrameTreeNode::kFrameTreeNodeInvalidId; |
| 203 | 207 |
| 204 return frame_tree_node_->parent()->frame_tree_node_id(); | 208 return frame_tree_node_->parent()->frame_tree_node_id(); |
| 205 } | 209 } |
| (...skipping 624 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 830 content::AncestorThrottle::MaybeCreateThrottleFor(this); | 834 content::AncestorThrottle::MaybeCreateThrottleFor(this); |
| 831 if (ancestor_throttle) | 835 if (ancestor_throttle) |
| 832 throttles_.push_back(std::move(ancestor_throttle)); | 836 throttles_.push_back(std::move(ancestor_throttle)); |
| 833 | 837 |
| 834 throttles_.insert(throttles_.begin(), | 838 throttles_.insert(throttles_.begin(), |
| 835 std::make_move_iterator(throttles_to_register.begin()), | 839 std::make_move_iterator(throttles_to_register.begin()), |
| 836 std::make_move_iterator(throttles_to_register.end())); | 840 std::make_move_iterator(throttles_to_register.end())); |
| 837 } | 841 } |
| 838 | 842 |
| 839 } // namespace content | 843 } // namespace content |
| OLD | NEW |