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

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: Address comments 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 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 1045 matching lines...) Expand 10 before | Expand all | Expand 10 after
1056 // static 1056 // static
1057 void RenderFrame::ForEach(RenderFrameVisitor* visitor) { 1057 void RenderFrame::ForEach(RenderFrameVisitor* visitor) {
1058 FrameMap* frames = g_frame_map.Pointer(); 1058 FrameMap* frames = g_frame_map.Pointer();
1059 for (FrameMap::iterator it = frames->begin(); it != frames->end(); ++it) { 1059 for (FrameMap::iterator it = frames->begin(); it != frames->end(); ++it) {
1060 if (!visitor->Visit(it->second)) 1060 if (!visitor->Visit(it->second))
1061 return; 1061 return;
1062 } 1062 }
1063 } 1063 }
1064 1064
1065 // static 1065 // static
1066 int RenderFrame::GetRoutingIdForWebFrame(blink::WebFrame* web_frame) {
1067 return GetRoutingIdForFrameOrProxy(web_frame);
Charlie Reis 2017/05/15 20:23:14 Did you decide not to go with Dominic's suggestion
lpz 2017/05/16 15:19:57 Ahh, I missed that comment. Thanks, done. Btw, th
Charlie Reis 2017/05/16 16:34:08 Ah, nice! Yes, we can remove that after this CL l
1068 }
1069
1070 // static
1066 RenderFrameImpl* RenderFrameImpl::FromWebFrame(blink::WebFrame* web_frame) { 1071 RenderFrameImpl* RenderFrameImpl::FromWebFrame(blink::WebFrame* web_frame) {
1067 FrameMap::iterator iter = g_frame_map.Get().find(web_frame); 1072 FrameMap::iterator iter = g_frame_map.Get().find(web_frame);
1068 if (iter != g_frame_map.Get().end()) 1073 if (iter != g_frame_map.Get().end())
1069 return iter->second; 1074 return iter->second;
1070 return NULL; 1075 return NULL;
1071 } 1076 }
1072 1077
1073 // static 1078 // static
1074 void RenderFrameImpl::InstallCreateHook( 1079 void RenderFrameImpl::InstallCreateHook(
1075 CreateRenderFrameImplFunction create_render_frame_impl) { 1080 CreateRenderFrameImplFunction create_render_frame_impl) {
(...skipping 5995 matching lines...) Expand 10 before | Expand all | Expand 10 after
7071 policy(info.default_policy), 7076 policy(info.default_policy),
7072 replaces_current_history_item(info.replaces_current_history_item), 7077 replaces_current_history_item(info.replaces_current_history_item),
7073 history_navigation_in_new_child_frame( 7078 history_navigation_in_new_child_frame(
7074 info.is_history_navigation_in_new_child_frame), 7079 info.is_history_navigation_in_new_child_frame),
7075 client_redirect(info.is_client_redirect), 7080 client_redirect(info.is_client_redirect),
7076 cache_disabled(info.is_cache_disabled), 7081 cache_disabled(info.is_cache_disabled),
7077 form(info.form), 7082 form(info.form),
7078 source_location(info.source_location) {} 7083 source_location(info.source_location) {}
7079 7084
7080 } // namespace content 7085 } // namespace content
OLDNEW
« components/safe_browsing/browser/threat_details.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