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