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 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 | 253 |
254 // Out-of-process child frames receive a signal from RenderWidgetCompositor | 254 // Out-of-process child frames receive a signal from RenderWidgetCompositor |
255 // when a compositor frame has committed. | 255 // when a compositor frame has committed. |
256 void DidCommitCompositorFrame(); | 256 void DidCommitCompositorFrame(); |
257 | 257 |
258 // Draw commands have been issued by RenderWidgetCompositor. | 258 // Draw commands have been issued by RenderWidgetCompositor. |
259 void DidCommitAndDrawCompositorFrame(); | 259 void DidCommitAndDrawCompositorFrame(); |
260 | 260 |
261 // TODO(jam): this is a temporary getter until all the code is transitioned | 261 // TODO(jam): this is a temporary getter until all the code is transitioned |
262 // to using RenderFrame instead of RenderView. | 262 // to using RenderFrame instead of RenderView. |
263 RenderViewImpl* render_view() { return render_view_.get(); } | 263 RenderViewImpl* render_view() { return render_view_; } |
264 | 264 |
265 const blink::WebHistoryItem& current_history_item() { | 265 const blink::WebHistoryItem& current_history_item() { |
266 return current_history_item_; | 266 return current_history_item_; |
267 } | 267 } |
268 | 268 |
269 RendererWebCookieJarImpl* cookie_jar() { return &cookie_jar_; } | 269 RendererWebCookieJarImpl* cookie_jar() { return &cookie_jar_; } |
270 | 270 |
271 // Returns the RenderWidget associated with this frame. | 271 // Returns the RenderWidget associated with this frame. |
272 RenderWidget* GetRenderWidget(); | 272 RenderWidget* GetRenderWidget(); |
273 | 273 |
(...skipping 827 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1101 // When a frame is created by the browser process, it is for a pending | 1101 // When a frame is created by the browser process, it is for a pending |
1102 // navigation. In this case, it is not immediately attached to the frame tree | 1102 // navigation. In this case, it is not immediately attached to the frame tree |
1103 // if there is a RenderFrameProxy for the same frame. It is inserted into the | 1103 // if there is a RenderFrameProxy for the same frame. It is inserted into the |
1104 // frame tree at the time the pending navigation commits. | 1104 // frame tree at the time the pending navigation commits. |
1105 // Frames added by the parent document are created from the renderer process | 1105 // Frames added by the parent document are created from the renderer process |
1106 // and are immediately inserted in the frame tree. | 1106 // and are immediately inserted in the frame tree. |
1107 // TODO(dcheng): Remove this once we have FrameTreeHandle and can use the | 1107 // TODO(dcheng): Remove this once we have FrameTreeHandle and can use the |
1108 // Blink Web* layer to check for provisional frames. | 1108 // Blink Web* layer to check for provisional frames. |
1109 bool in_frame_tree_; | 1109 bool in_frame_tree_; |
1110 | 1110 |
1111 base::WeakPtr<RenderViewImpl> render_view_; | 1111 RenderViewImpl* render_view_; |
1112 int routing_id_; | 1112 int routing_id_; |
1113 | 1113 |
1114 // If this frame was created to replace a proxy, this will store the routing | 1114 // If this frame was created to replace a proxy, this will store the routing |
1115 // id of the proxy to replace at commit-time, at which time it will be | 1115 // id of the proxy to replace at commit-time, at which time it will be |
1116 // cleared. | 1116 // cleared. |
1117 // TODO(creis): Remove this after switching to PlzNavigate. | 1117 // TODO(creis): Remove this after switching to PlzNavigate. |
1118 int proxy_routing_id_; | 1118 int proxy_routing_id_; |
1119 | 1119 |
1120 // Non-null when the RenderFrame is a local root for compositing, input, | 1120 // Non-null when the RenderFrame is a local root for compositing, input, |
1121 // layout, etc. A local frame is also a local root iff it does not have a | 1121 // layout, etc. A local frame is also a local root iff it does not have a |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1341 bool browser_side_navigation_pending_ = false; | 1341 bool browser_side_navigation_pending_ = false; |
1342 | 1342 |
1343 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; | 1343 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; |
1344 | 1344 |
1345 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 1345 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
1346 }; | 1346 }; |
1347 | 1347 |
1348 } // namespace content | 1348 } // namespace content |
1349 | 1349 |
1350 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 1350 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
OLD | NEW |