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 "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/containers/hash_tables.h" | 8 #include "base/containers/hash_tables.h" |
9 #include "base/lazy_instance.h" | 9 #include "base/lazy_instance.h" |
10 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
308 return process_; | 308 return process_; |
309 } | 309 } |
310 | 310 |
311 RenderFrameHost* RenderFrameHostImpl::GetParent() { | 311 RenderFrameHost* RenderFrameHostImpl::GetParent() { |
312 FrameTreeNode* parent_node = frame_tree_node_->parent(); | 312 FrameTreeNode* parent_node = frame_tree_node_->parent(); |
313 if (!parent_node) | 313 if (!parent_node) |
314 return NULL; | 314 return NULL; |
315 return parent_node->current_frame_host(); | 315 return parent_node->current_frame_host(); |
316 } | 316 } |
317 | 317 |
| 318 int RenderFrameHostImpl::GetFrameTreeNodeId() { |
| 319 return frame_tree_node_->frame_tree_node_id(); |
| 320 } |
| 321 |
318 const std::string& RenderFrameHostImpl::GetFrameName() { | 322 const std::string& RenderFrameHostImpl::GetFrameName() { |
319 return frame_tree_node_->frame_name(); | 323 return frame_tree_node_->frame_name(); |
320 } | 324 } |
321 | 325 |
322 bool RenderFrameHostImpl::IsCrossProcessSubframe() { | 326 bool RenderFrameHostImpl::IsCrossProcessSubframe() { |
323 FrameTreeNode* parent_node = frame_tree_node_->parent(); | 327 FrameTreeNode* parent_node = frame_tree_node_->parent(); |
324 if (!parent_node) | 328 if (!parent_node) |
325 return false; | 329 return false; |
326 return GetSiteInstance() != | 330 return GetSiteInstance() != |
327 parent_node->current_frame_host()->GetSiteInstance(); | 331 parent_node->current_frame_host()->GetSiteInstance(); |
(...skipping 2188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2516 *dst = src; | 2520 *dst = src; |
2517 | 2521 |
2518 if (src.routing_id != -1) | 2522 if (src.routing_id != -1) |
2519 dst->tree_id = RoutingIDToAXTreeID(src.routing_id); | 2523 dst->tree_id = RoutingIDToAXTreeID(src.routing_id); |
2520 | 2524 |
2521 if (src.parent_routing_id != -1) | 2525 if (src.parent_routing_id != -1) |
2522 dst->parent_tree_id = RoutingIDToAXTreeID(src.parent_routing_id); | 2526 dst->parent_tree_id = RoutingIDToAXTreeID(src.parent_routing_id); |
2523 } | 2527 } |
2524 | 2528 |
2525 } // namespace content | 2529 } // namespace content |
OLD | NEW |