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

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 feedback 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);
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 6019 matching lines...) Expand 10 before | Expand all | Expand 10 after
7095 policy(info.default_policy), 7100 policy(info.default_policy),
7096 replaces_current_history_item(info.replaces_current_history_item), 7101 replaces_current_history_item(info.replaces_current_history_item),
7097 history_navigation_in_new_child_frame( 7102 history_navigation_in_new_child_frame(
7098 info.is_history_navigation_in_new_child_frame), 7103 info.is_history_navigation_in_new_child_frame),
7099 client_redirect(info.is_client_redirect), 7104 client_redirect(info.is_client_redirect),
7100 cache_disabled(info.is_cache_disabled), 7105 cache_disabled(info.is_cache_disabled),
7101 form(info.form), 7106 form(info.form),
7102 source_location(info.source_location) {} 7107 source_location(info.source_location) {}
7103 7108
7104 } // namespace content 7109 } // 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