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

Unified Diff: content/renderer/render_frame_impl.cc

Issue 2837603002: Content API changes to improve DOM stitching in ThreatDetails code. (Closed)
Patch Set: Remove unnecessary deps Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: content/renderer/render_frame_impl.cc
diff --git a/content/renderer/render_frame_impl.cc b/content/renderer/render_frame_impl.cc
index fbf545b8694f14fe1d2685c176186ad42e87ae5d..65296b9479388edb54cdfd161ea21c2b14eba193 100644
--- a/content/renderer/render_frame_impl.cc
+++ b/content/renderer/render_frame_impl.cc
@@ -1062,6 +1062,11 @@ void RenderFrame::ForEach(RenderFrameVisitor* visitor) {
}
// static
+int RenderFrame::GetRoutingIdForWebFrame(blink::WebFrame* web_frame) {
dmazzoni 2017/05/01 20:10:07 Do you need this if it's just a one-liner?
lpz 2017/05/02 19:36:25 GetRoutingIdForFrameOrProxy is from web_frame_util
dmazzoni 2017/05/05 17:32:28 No preference, just curious if there's some way to
lpz 2017/05/10 14:21:08 Will defer to creis@ - any preference on this?
Charlie Reis 2017/05/10 22:17:49 With the new API, it's a little less immediately o
lpz 2017/05/16 15:19:57 Done.
+ return GetRoutingIdForFrameOrProxy(web_frame);
+}
+
+// static
RenderFrameImpl* RenderFrameImpl::FromWebFrame(blink::WebFrame* web_frame) {
FrameMap::iterator iter = g_frame_map.Get().find(web_frame);
if (iter != g_frame_map.Get().end())
« content/public/browser/render_frame_host.h ('K') | « content/public/renderer/render_frame.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698