| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_PROXY_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_FRAME_PROXY_H_ |
| 6 #define CONTENT_RENDERER_RENDER_FRAME_PROXY_H_ | 6 #define CONTENT_RENDERER_RENDER_FRAME_PROXY_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 | 97 |
| 98 // Returns the RenderFrameProxy given a WebFrame. | 98 // Returns the RenderFrameProxy given a WebFrame. |
| 99 static RenderFrameProxy* FromWebFrame(blink::WebFrame* web_frame); | 99 static RenderFrameProxy* FromWebFrame(blink::WebFrame* web_frame); |
| 100 | 100 |
| 101 ~RenderFrameProxy() override; | 101 ~RenderFrameProxy() override; |
| 102 | 102 |
| 103 // IPC::Sender | 103 // IPC::Sender |
| 104 bool Send(IPC::Message* msg) override; | 104 bool Send(IPC::Message* msg) override; |
| 105 | 105 |
| 106 // Out-of-process child frames receive a signal from RenderWidgetCompositor | 106 // Out-of-process child frames receive a signal from RenderWidgetCompositor |
| 107 // when a compositor frame will begin. | |
| 108 void WillBeginCompositorFrame(); | |
| 109 | |
| 110 // Out-of-process child frames receive a signal from RenderWidgetCompositor | |
| 111 // when a compositor frame has committed. | 107 // when a compositor frame has committed. |
| 112 void DidCommitCompositorFrame(); | 108 void DidCommitCompositorFrame(); |
| 113 | 109 |
| 114 // Pass replicated information, such as security origin, to this | 110 // Pass replicated information, such as security origin, to this |
| 115 // RenderFrameProxy's WebRemoteFrame. | 111 // RenderFrameProxy's WebRemoteFrame. |
| 116 void SetReplicatedState(const FrameReplicationState& state); | 112 void SetReplicatedState(const FrameReplicationState& state); |
| 117 | 113 |
| 118 // Navigating a top-level frame cross-process does not swap the WebLocalFrame | 114 // Navigating a top-level frame cross-process does not swap the WebLocalFrame |
| 119 // for a WebRemoteFrame in the frame tree. In this case, this WebRemoteFrame | 115 // for a WebRemoteFrame in the frame tree. In this case, this WebRemoteFrame |
| 120 // is not attached to the frame tree and there is no blink::Frame associated | 116 // is not attached to the frame tree and there is no blink::Frame associated |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 | 186 |
| 191 RenderViewImpl* render_view_; | 187 RenderViewImpl* render_view_; |
| 192 RenderWidget* render_widget_; | 188 RenderWidget* render_widget_; |
| 193 | 189 |
| 194 DISALLOW_COPY_AND_ASSIGN(RenderFrameProxy); | 190 DISALLOW_COPY_AND_ASSIGN(RenderFrameProxy); |
| 195 }; | 191 }; |
| 196 | 192 |
| 197 } // namespace | 193 } // namespace |
| 198 | 194 |
| 199 #endif // CONTENT_RENDERER_RENDER_FRAME_PROXY_H_ | 195 #endif // CONTENT_RENDERER_RENDER_FRAME_PROXY_H_ |
| OLD | NEW |