OLD | NEW |
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 Loading... |
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 5999 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7075 policy(info.default_policy), | 7080 policy(info.default_policy), |
7076 replaces_current_history_item(info.replaces_current_history_item), | 7081 replaces_current_history_item(info.replaces_current_history_item), |
7077 history_navigation_in_new_child_frame( | 7082 history_navigation_in_new_child_frame( |
7078 info.is_history_navigation_in_new_child_frame), | 7083 info.is_history_navigation_in_new_child_frame), |
7079 client_redirect(info.is_client_redirect), | 7084 client_redirect(info.is_client_redirect), |
7080 cache_disabled(info.is_cache_disabled), | 7085 cache_disabled(info.is_cache_disabled), |
7081 form(info.form), | 7086 form(info.form), |
7082 source_location(info.source_location) {} | 7087 source_location(info.source_location) {} |
7083 | 7088 |
7084 } // namespace content | 7089 } // namespace content |
OLD | NEW |