Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(163)

Side by Side Diff: content/browser/frame_host/render_frame_host_impl.cc

Issue 1797363002: "Top Document Isolation" mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add missing override Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 } 307 }
308 308
309 SiteInstanceImpl* RenderFrameHostImpl::GetSiteInstance() { 309 SiteInstanceImpl* RenderFrameHostImpl::GetSiteInstance() {
310 return site_instance_.get(); 310 return site_instance_.get();
311 } 311 }
312 312
313 RenderProcessHost* RenderFrameHostImpl::GetProcess() { 313 RenderProcessHost* RenderFrameHostImpl::GetProcess() {
314 return process_; 314 return process_;
315 } 315 }
316 316
317 RenderFrameHost* RenderFrameHostImpl::GetParent() { 317 RenderFrameHostImpl* RenderFrameHostImpl::GetParent() {
318 FrameTreeNode* parent_node = frame_tree_node_->parent(); 318 FrameTreeNode* parent_node = frame_tree_node_->parent();
319 if (!parent_node) 319 if (!parent_node)
320 return NULL; 320 return NULL;
321 return parent_node->current_frame_host(); 321 return parent_node->current_frame_host();
322 } 322 }
323 323
324 int RenderFrameHostImpl::GetFrameTreeNodeId() { 324 int RenderFrameHostImpl::GetFrameTreeNodeId() {
325 return frame_tree_node_->frame_tree_node_id(); 325 return frame_tree_node_->frame_tree_node_id();
326 } 326 }
327 327
(...skipping 2378 matching lines...) Expand 10 before | Expand all | Expand 10 after
2706 FrameTreeNode* focused_frame_tree_node = frame_tree_->GetFocusedFrame(); 2706 FrameTreeNode* focused_frame_tree_node = frame_tree_->GetFocusedFrame();
2707 if (!focused_frame_tree_node) 2707 if (!focused_frame_tree_node)
2708 return; 2708 return;
2709 RenderFrameHostImpl* focused_frame = 2709 RenderFrameHostImpl* focused_frame =
2710 focused_frame_tree_node->current_frame_host(); 2710 focused_frame_tree_node->current_frame_host();
2711 DCHECK(focused_frame); 2711 DCHECK(focused_frame);
2712 dst->focused_tree_id = focused_frame->GetAXTreeID(); 2712 dst->focused_tree_id = focused_frame->GetAXTreeID();
2713 } 2713 }
2714 2714
2715 } // namespace content 2715 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698