OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/render_frame_host_impl.h" | 5 #include "content/browser/frame_host/render_frame_host_impl.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
299 return process_; | 299 return process_; |
300 } | 300 } |
301 | 301 |
302 RenderFrameHost* RenderFrameHostImpl::GetParent() { | 302 RenderFrameHost* RenderFrameHostImpl::GetParent() { |
303 FrameTreeNode* parent_node = frame_tree_node_->parent(); | 303 FrameTreeNode* parent_node = frame_tree_node_->parent(); |
304 if (!parent_node) | 304 if (!parent_node) |
305 return NULL; | 305 return NULL; |
306 return parent_node->current_frame_host(); | 306 return parent_node->current_frame_host(); |
307 } | 307 } |
308 | 308 |
| 309 int RenderFrameHostImpl::GetFrameTreeNodeId() { |
| 310 return frame_tree_node_->frame_tree_node_id(); |
| 311 } |
| 312 |
309 const std::string& RenderFrameHostImpl::GetFrameName() { | 313 const std::string& RenderFrameHostImpl::GetFrameName() { |
310 return frame_tree_node_->frame_name(); | 314 return frame_tree_node_->frame_name(); |
311 } | 315 } |
312 | 316 |
313 bool RenderFrameHostImpl::IsCrossProcessSubframe() { | 317 bool RenderFrameHostImpl::IsCrossProcessSubframe() { |
314 FrameTreeNode* parent_node = frame_tree_node_->parent(); | 318 FrameTreeNode* parent_node = frame_tree_node_->parent(); |
315 if (!parent_node) | 319 if (!parent_node) |
316 return false; | 320 return false; |
317 return GetSiteInstance() != | 321 return GetSiteInstance() != |
318 parent_node->current_frame_host()->GetSiteInstance(); | 322 parent_node->current_frame_host()->GetSiteInstance(); |
(...skipping 2181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2500 *dst = src; | 2504 *dst = src; |
2501 | 2505 |
2502 if (src.routing_id != -1) | 2506 if (src.routing_id != -1) |
2503 dst->tree_id = RoutingIDToAXTreeID(src.routing_id); | 2507 dst->tree_id = RoutingIDToAXTreeID(src.routing_id); |
2504 | 2508 |
2505 if (src.parent_routing_id != -1) | 2509 if (src.parent_routing_id != -1) |
2506 dst->parent_tree_id = RoutingIDToAXTreeID(src.parent_routing_id); | 2510 dst->parent_tree_id = RoutingIDToAXTreeID(src.parent_routing_id); |
2507 } | 2511 } |
2508 | 2512 |
2509 } // namespace content | 2513 } // namespace content |
OLD | NEW |