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

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

Issue 2837603002: Content API changes to improve DOM stitching in ThreatDetails code. (Closed)
Patch Set: Set output pointers correctly Created 3 years, 7 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 2014 The Chromium Authors. All rights reserved. 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 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_proxy_host.h" 5 #include "content/browser/frame_host/render_frame_proxy_host.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/lazy_instance.h" 9 #include "base/lazy_instance.h"
10 #include "content/browser/bad_message.h" 10 #include "content/browser/bad_message.h"
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 GetProcess()->RemoveRoute(routing_id_); 103 GetProcess()->RemoveRoute(routing_id_);
104 g_routing_id_frame_proxy_map.Get().erase( 104 g_routing_id_frame_proxy_map.Get().erase(
105 RenderFrameProxyHostID(GetProcess()->GetID(), routing_id_)); 105 RenderFrameProxyHostID(GetProcess()->GetID(), routing_id_));
106 } 106 }
107 107
108 void RenderFrameProxyHost::SetChildRWHView(RenderWidgetHostView* view) { 108 void RenderFrameProxyHost::SetChildRWHView(RenderWidgetHostView* view) {
109 cross_process_frame_connector_->set_view( 109 cross_process_frame_connector_->set_view(
110 static_cast<RenderWidgetHostViewChildFrame*>(view)); 110 static_cast<RenderWidgetHostViewChildFrame*>(view));
111 } 111 }
112 112
113 int RenderFrameProxyHost::GetFrameTreeNodeId() const {
114 return frame_tree_node_->frame_tree_node_id();
115 }
116
113 RenderViewHostImpl* RenderFrameProxyHost::GetRenderViewHost() { 117 RenderViewHostImpl* RenderFrameProxyHost::GetRenderViewHost() {
114 return frame_tree_node_->frame_tree()->GetRenderViewHost( 118 return frame_tree_node_->frame_tree()->GetRenderViewHost(
115 site_instance_.get()); 119 site_instance_.get());
116 } 120 }
117 121
118 RenderWidgetHostView* RenderFrameProxyHost::GetRenderWidgetHostView() { 122 RenderWidgetHostView* RenderFrameProxyHost::GetRenderWidgetHostView() {
119 return frame_tree_node_->parent()->render_manager() 123 return frame_tree_node_->parent()->render_manager()
120 ->GetRenderWidgetHostView(); 124 ->GetRenderWidgetHostView();
121 } 125 }
122 126
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 350
347 target_rfh->AdvanceFocus(type, source_proxy); 351 target_rfh->AdvanceFocus(type, source_proxy);
348 } 352 }
349 353
350 void RenderFrameProxyHost::OnFrameFocused() { 354 void RenderFrameProxyHost::OnFrameFocused() {
351 frame_tree_node_->current_frame_host()->delegate()->SetFocusedFrame( 355 frame_tree_node_->current_frame_host()->delegate()->SetFocusedFrame(
352 frame_tree_node_, GetSiteInstance()); 356 frame_tree_node_, GetSiteInstance());
353 } 357 }
354 358
355 } // namespace content 359 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698