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 1049 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1060 // static | 1060 // static |
1061 void RenderFrame::ForEach(RenderFrameVisitor* visitor) { | 1061 void RenderFrame::ForEach(RenderFrameVisitor* visitor) { |
1062 FrameMap* frames = g_frame_map.Pointer(); | 1062 FrameMap* frames = g_frame_map.Pointer(); |
1063 for (FrameMap::iterator it = frames->begin(); it != frames->end(); ++it) { | 1063 for (FrameMap::iterator it = frames->begin(); it != frames->end(); ++it) { |
1064 if (!visitor->Visit(it->second)) | 1064 if (!visitor->Visit(it->second)) |
1065 return; | 1065 return; |
1066 } | 1066 } |
1067 } | 1067 } |
1068 | 1068 |
1069 // static | 1069 // static |
| 1070 int RenderFrame::GetRoutingIdForWebFrame(blink::WebFrame* web_frame) { |
| 1071 return GetRoutingIdForFrameOrProxy(web_frame); |
| 1072 } |
| 1073 |
| 1074 // static |
1070 RenderFrameImpl* RenderFrameImpl::FromWebFrame(blink::WebFrame* web_frame) { | 1075 RenderFrameImpl* RenderFrameImpl::FromWebFrame(blink::WebFrame* web_frame) { |
1071 FrameMap::iterator iter = g_frame_map.Get().find(web_frame); | 1076 FrameMap::iterator iter = g_frame_map.Get().find(web_frame); |
1072 if (iter != g_frame_map.Get().end()) | 1077 if (iter != g_frame_map.Get().end()) |
1073 return iter->second; | 1078 return iter->second; |
1074 return NULL; | 1079 return NULL; |
1075 } | 1080 } |
1076 | 1081 |
1077 // static | 1082 // static |
1078 void RenderFrameImpl::InstallCreateHook( | 1083 void RenderFrameImpl::InstallCreateHook( |
1079 CreateRenderFrameImplFunction create_render_frame_impl) { | 1084 CreateRenderFrameImplFunction create_render_frame_impl) { |
(...skipping 5964 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7044 policy(info.default_policy), | 7049 policy(info.default_policy), |
7045 replaces_current_history_item(info.replaces_current_history_item), | 7050 replaces_current_history_item(info.replaces_current_history_item), |
7046 history_navigation_in_new_child_frame( | 7051 history_navigation_in_new_child_frame( |
7047 info.is_history_navigation_in_new_child_frame), | 7052 info.is_history_navigation_in_new_child_frame), |
7048 client_redirect(info.is_client_redirect), | 7053 client_redirect(info.is_client_redirect), |
7049 cache_disabled(info.is_cache_disabled), | 7054 cache_disabled(info.is_cache_disabled), |
7050 form(info.form), | 7055 form(info.form), |
7051 source_location(info.source_location) {} | 7056 source_location(info.source_location) {} |
7052 | 7057 |
7053 } // namespace content | 7058 } // namespace content |
OLD | NEW |