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/basictypes.h" | 8 #include "base/basictypes.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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 virtual void initializeChildFrame( | 114 virtual void initializeChildFrame( |
115 const blink::WebRect& frame_rect, | 115 const blink::WebRect& frame_rect, |
116 float scale_factor); | 116 float scale_factor); |
117 virtual void navigate(const blink::WebURLRequest& request, | 117 virtual void navigate(const blink::WebURLRequest& request, |
118 bool should_replace_current_entry); | 118 bool should_replace_current_entry); |
119 virtual void forwardInputEvent(const blink::WebInputEvent* event); | 119 virtual void forwardInputEvent(const blink::WebInputEvent* event); |
120 | 120 |
121 // IPC handlers | 121 // IPC handlers |
122 void OnDidStartLoading(); | 122 void OnDidStartLoading(); |
123 | 123 |
| 124 void SetWebRemoteFrame(blink::WebRemoteFrame* remote_frame); |
| 125 |
124 private: | 126 private: |
125 RenderFrameProxy(int routing_id, int frame_routing_id); | 127 RenderFrameProxy(int routing_id, int frame_routing_id); |
126 | 128 |
127 void Init(blink::WebRemoteFrame* frame, RenderViewImpl* render_view); | 129 void Init(blink::WebRemoteFrame* frame, RenderViewImpl* render_view); |
128 | 130 |
129 // Navigating a top-level frame cross-process does not swap the WebLocalFrame | 131 // Navigating a top-level frame cross-process does not swap the WebLocalFrame |
130 // for a WebRemoteFrame in the frame tree. In this case, this WebRemoteFrame | 132 // for a WebRemoteFrame in the frame tree. In this case, this WebRemoteFrame |
131 // is not attached to the frame tree and there is no blink::Frame associated | 133 // is not attached to the frame tree and there is no blink::Frame associated |
132 // with it, so it is not in state where most operations on it will succeed. | 134 // with it, so it is not in state where most operations on it will succeed. |
133 bool IsMainFrameDetachedFromTree() const; | 135 bool IsMainFrameDetachedFromTree() const; |
(...skipping 23 matching lines...) Expand all Loading... |
157 scoped_refptr<ChildFrameCompositingHelper> compositing_helper_; | 159 scoped_refptr<ChildFrameCompositingHelper> compositing_helper_; |
158 | 160 |
159 RenderViewImpl* render_view_; | 161 RenderViewImpl* render_view_; |
160 | 162 |
161 DISALLOW_COPY_AND_ASSIGN(RenderFrameProxy); | 163 DISALLOW_COPY_AND_ASSIGN(RenderFrameProxy); |
162 }; | 164 }; |
163 | 165 |
164 } // namespace | 166 } // namespace |
165 | 167 |
166 #endif // CONTENT_RENDERER_RENDER_FRAME_PROXY_H_ | 168 #endif // CONTENT_RENDERER_RENDER_FRAME_PROXY_H_ |
OLD | NEW |