| 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 void WillBeginCompositorFrame(); | 108 void WillBeginCompositorFrame(); |
| 109 | 109 |
| 110 // Out-of-process child frames receive a signal from RenderWidgetCompositor | 110 // Out-of-process child frames receive a signal from RenderWidgetCompositor |
| 111 // when a compositor frame has committed. | 111 // when a compositor frame has committed. |
| 112 void DidCommitCompositorFrame(); | 112 void DidCommitCompositorFrame(); |
| 113 | 113 |
| 114 // Pass replicated information, such as security origin, to this | 114 // Pass replicated information, such as security origin, to this |
| 115 // RenderFrameProxy's WebRemoteFrame. | 115 // RenderFrameProxy's WebRemoteFrame. |
| 116 void SetReplicatedState(const FrameReplicationState& state); | 116 void SetReplicatedState(const FrameReplicationState& state); |
| 117 | 117 |
| 118 // 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 | |
| 120 // is not attached to the frame tree and there is no blink::Frame associated | |
| 121 // with it, so it is not in state where most operations on it will succeed. | |
| 122 bool IsMainFrameDetachedFromTree() const; | |
| 123 | |
| 124 int routing_id() { return routing_id_; } | 118 int routing_id() { return routing_id_; } |
| 125 RenderViewImpl* render_view() { return render_view_; } | 119 RenderViewImpl* render_view() { return render_view_; } |
| 126 blink::WebRemoteFrame* web_frame() { return web_frame_; } | 120 blink::WebRemoteFrame* web_frame() { return web_frame_; } |
| 127 | 121 |
| 128 // Returns the widget used for the local frame root. | 122 // Returns the widget used for the local frame root. |
| 129 RenderWidget* render_widget() { return render_widget_; } | 123 RenderWidget* render_widget() { return render_widget_; } |
| 130 | 124 |
| 131 // blink::WebRemoteFrameClient implementation: | 125 // blink::WebRemoteFrameClient implementation: |
| 132 void frameDetached(DetachType type) override; | 126 void frameDetached(DetachType type) override; |
| 133 void postMessageEvent(blink::WebLocalFrame* sourceFrame, | 127 void postMessageEvent(blink::WebLocalFrame* sourceFrame, |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 | 184 |
| 191 RenderViewImpl* render_view_; | 185 RenderViewImpl* render_view_; |
| 192 RenderWidget* render_widget_; | 186 RenderWidget* render_widget_; |
| 193 | 187 |
| 194 DISALLOW_COPY_AND_ASSIGN(RenderFrameProxy); | 188 DISALLOW_COPY_AND_ASSIGN(RenderFrameProxy); |
| 195 }; | 189 }; |
| 196 | 190 |
| 197 } // namespace | 191 } // namespace |
| 198 | 192 |
| 199 #endif // CONTENT_RENDERER_RENDER_FRAME_PROXY_H_ | 193 #endif // CONTENT_RENDERER_RENDER_FRAME_PROXY_H_ |
| OLD | NEW |