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 #ifndef CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 NON_EXPORTED_BASE(public blink::WebFrameClient), | 158 NON_EXPORTED_BASE(public blink::WebFrameClient), |
159 NON_EXPORTED_BASE(public blink::WebFrameSerializerClient) { | 159 NON_EXPORTED_BASE(public blink::WebFrameSerializerClient) { |
160 public: | 160 public: |
161 // Creates a new RenderFrame as the main frame of |render_view|. | 161 // Creates a new RenderFrame as the main frame of |render_view|. |
162 static RenderFrameImpl* CreateMainFrame( | 162 static RenderFrameImpl* CreateMainFrame( |
163 RenderViewImpl* render_view, | 163 RenderViewImpl* render_view, |
164 int32_t routing_id, | 164 int32_t routing_id, |
165 int32_t widget_routing_id, | 165 int32_t widget_routing_id, |
166 bool hidden, | 166 bool hidden, |
167 const blink::WebScreenInfo& screen_info, | 167 const blink::WebScreenInfo& screen_info, |
168 CompositorDependencies* compositor_deps); | 168 CompositorDependencies* compositor_deps, |
| 169 blink::WebFrame* opener); |
169 | 170 |
170 // Creates a new RenderFrame with |routing_id|. If |proxy_routing_id| is | 171 // Creates a new RenderFrame with |routing_id|. If |proxy_routing_id| is |
171 // MSG_ROUTING_NONE, it creates the Blink WebLocalFrame and inserts it into | 172 // MSG_ROUTING_NONE, it creates the Blink WebLocalFrame and inserts it into |
172 // the frame tree after the frame identified by | 173 // the frame tree after the frame identified by |
173 // |previous_sibling_routing_id|, or as the first child if | 174 // |previous_sibling_routing_id|, or as the first child if |
174 // |previous_sibling_routing_id| is MSG_ROUTING_NONE. Otherwise, the frame is | 175 // |previous_sibling_routing_id| is MSG_ROUTING_NONE. Otherwise, the frame is |
175 // semi-orphaned until it commits, at which point it replaces the proxy | 176 // semi-orphaned until it commits, at which point it replaces the proxy |
176 // identified by |proxy_routing_id|. The frame's opener is set to the frame | 177 // identified by |proxy_routing_id|. The frame's opener is set to the frame |
177 // identified by |opener_routing_id|. The frame is created as a child of the | 178 // identified by |opener_routing_id|. The frame is created as a child of the |
178 // RenderFrame identified by |parent_routing_id| or as the top-level frame if | 179 // RenderFrame identified by |parent_routing_id| or as the top-level frame if |
(...skipping 1030 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1209 #endif | 1210 #endif |
1210 | 1211 |
1211 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; | 1212 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; |
1212 | 1213 |
1213 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 1214 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
1214 }; | 1215 }; |
1215 | 1216 |
1216 } // namespace content | 1217 } // namespace content |
1217 | 1218 |
1218 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 1219 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
OLD | NEW |