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

Side by Side 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 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/renderer/render_frame_impl.h" 5 #include "content/renderer/render_frame_impl.h"
6 6
7 #include <map> 7 #include <map>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 1044 matching lines...) Expand 10 before | Expand all | Expand 10 after
1055 // static 1055 // static
1056 void RenderFrame::ForEach(RenderFrameVisitor* visitor) { 1056 void RenderFrame::ForEach(RenderFrameVisitor* visitor) {
1057 FrameMap* frames = g_frame_map.Pointer(); 1057 FrameMap* frames = g_frame_map.Pointer();
1058 for (FrameMap::iterator it = frames->begin(); it != frames->end(); ++it) { 1058 for (FrameMap::iterator it = frames->begin(); it != frames->end(); ++it) {
1059 if (!visitor->Visit(it->second)) 1059 if (!visitor->Visit(it->second))
1060 return; 1060 return;
1061 } 1061 }
1062 } 1062 }
1063 1063
1064 // static 1064 // static
1065 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.
1066 return GetRoutingIdForFrameOrProxy(web_frame);
1067 }
1068
1069 // static
1065 RenderFrameImpl* RenderFrameImpl::FromWebFrame(blink::WebFrame* web_frame) { 1070 RenderFrameImpl* RenderFrameImpl::FromWebFrame(blink::WebFrame* web_frame) {
1066 FrameMap::iterator iter = g_frame_map.Get().find(web_frame); 1071 FrameMap::iterator iter = g_frame_map.Get().find(web_frame);
1067 if (iter != g_frame_map.Get().end()) 1072 if (iter != g_frame_map.Get().end())
1068 return iter->second; 1073 return iter->second;
1069 return NULL; 1074 return NULL;
1070 } 1075 }
1071 1076
1072 // static 1077 // static
1073 void RenderFrameImpl::InstallCreateHook( 1078 void RenderFrameImpl::InstallCreateHook(
1074 CreateRenderFrameImplFunction create_render_frame_impl) { 1079 CreateRenderFrameImplFunction create_render_frame_impl) {
(...skipping 5921 matching lines...) Expand 10 before | Expand all | Expand 10 after
6996 policy(info.default_policy), 7001 policy(info.default_policy),
6997 replaces_current_history_item(info.replaces_current_history_item), 7002 replaces_current_history_item(info.replaces_current_history_item),
6998 history_navigation_in_new_child_frame( 7003 history_navigation_in_new_child_frame(
6999 info.is_history_navigation_in_new_child_frame), 7004 info.is_history_navigation_in_new_child_frame),
7000 client_redirect(info.is_client_redirect), 7005 client_redirect(info.is_client_redirect),
7001 cache_disabled(info.is_cache_disabled), 7006 cache_disabled(info.is_cache_disabled),
7002 form(info.form), 7007 form(info.form),
7003 source_location(info.source_location) {} 7008 source_location(info.source_location) {}
7004 7009
7005 } // namespace content 7010 } // namespace content
OLDNEW
« 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