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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 class WebContentDecryptionModule; | 83 class WebContentDecryptionModule; |
84 class WebMouseEvent; | 84 class WebMouseEvent; |
85 class WebPresentationClient; | 85 class WebPresentationClient; |
86 class WebPushClient; | 86 class WebPushClient; |
87 class WebSecurityOrigin; | 87 class WebSecurityOrigin; |
88 enum class WebCachePolicy; | 88 enum class WebCachePolicy; |
89 struct WebCompositionUnderline; | 89 struct WebCompositionUnderline; |
90 struct WebContextMenuData; | 90 struct WebContextMenuData; |
91 struct WebCursorInfo; | 91 struct WebCursorInfo; |
92 struct WebFindOptions; | 92 struct WebFindOptions; |
93 struct WebFrameOwnerProperties; | |
94 struct WebScreenInfo; | 93 struct WebScreenInfo; |
95 } | 94 } |
96 | 95 |
97 namespace gfx { | 96 namespace gfx { |
98 class Point; | 97 class Point; |
99 class Range; | 98 class Range; |
100 class Rect; | 99 class Rect; |
101 } | 100 } |
102 | 101 |
103 namespace media { | 102 namespace media { |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 // the frame tree after the frame identified by | 186 // the frame tree after the frame identified by |
188 // |previous_sibling_routing_id|, or as the first child if | 187 // |previous_sibling_routing_id|, or as the first child if |
189 // |previous_sibling_routing_id| is MSG_ROUTING_NONE. Otherwise, the frame is | 188 // |previous_sibling_routing_id| is MSG_ROUTING_NONE. Otherwise, the frame is |
190 // semi-orphaned until it commits, at which point it replaces the proxy | 189 // semi-orphaned until it commits, at which point it replaces the proxy |
191 // identified by |proxy_routing_id|. The frame's opener is set to the frame | 190 // identified by |proxy_routing_id|. The frame's opener is set to the frame |
192 // identified by |opener_routing_id|. The frame is created as a child of the | 191 // identified by |opener_routing_id|. The frame is created as a child of the |
193 // RenderFrame identified by |parent_routing_id| or as the top-level frame if | 192 // RenderFrame identified by |parent_routing_id| or as the top-level frame if |
194 // the latter is MSG_ROUTING_NONE. Note: This is called only when | 193 // the latter is MSG_ROUTING_NONE. Note: This is called only when |
195 // RenderFrame is being created in response to IPC message from the browser | 194 // RenderFrame is being created in response to IPC message from the browser |
196 // process. All other frame creation is driven through Blink and Create. | 195 // process. All other frame creation is driven through Blink and Create. |
197 static void CreateFrame( | 196 static void CreateFrame(int routing_id, |
198 int routing_id, | 197 int proxy_routing_id, |
199 int proxy_routing_id, | 198 int opener_routing_id, |
200 int opener_routing_id, | 199 int parent_routing_id, |
201 int parent_routing_id, | 200 int previous_sibling_routing_id, |
202 int previous_sibling_routing_id, | 201 const FrameReplicationState& replicated_state, |
203 const FrameReplicationState& replicated_state, | 202 CompositorDependencies* compositor_deps, |
204 CompositorDependencies* compositor_deps, | 203 const FrameMsg_NewFrame_WidgetParams& params, |
205 const FrameMsg_NewFrame_WidgetParams& params, | 204 const FrameOwnerProperties& frame_owner_properties); |
206 const blink::WebFrameOwnerProperties& frameOwner_properties); | |
207 | 205 |
208 // Returns the RenderFrameImpl for the given routing ID. | 206 // Returns the RenderFrameImpl for the given routing ID. |
209 static RenderFrameImpl* FromRoutingID(int routing_id); | 207 static RenderFrameImpl* FromRoutingID(int routing_id); |
210 | 208 |
211 // Just like RenderFrame::FromWebFrame but returns the implementation. | 209 // Just like RenderFrame::FromWebFrame but returns the implementation. |
212 static RenderFrameImpl* FromWebFrame(blink::WebFrame* web_frame); | 210 static RenderFrameImpl* FromWebFrame(blink::WebFrame* web_frame); |
213 | 211 |
214 // Used by content_layouttest_support to hook into the creation of | 212 // Used by content_layouttest_support to hook into the creation of |
215 // RenderFrameImpls. | 213 // RenderFrameImpls. |
216 struct CreateParams { | 214 struct CreateParams { |
(...skipping 1075 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1292 mojom::FrameHostPtr frame_host_; | 1290 mojom::FrameHostPtr frame_host_; |
1293 | 1291 |
1294 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; | 1292 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; |
1295 | 1293 |
1296 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 1294 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
1297 }; | 1295 }; |
1298 | 1296 |
1299 } // namespace content | 1297 } // namespace content |
1300 | 1298 |
1301 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 1299 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
OLD | NEW |