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