| 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 6019 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 |
| OLD | NEW |