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_BROWSER_FRAME_HOST_RENDER_FRAME_PROXY_HOST_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_PROXY_HOST_H_ |
6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_PROXY_HOST_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_PROXY_HOST_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 void SetChildRWHView(RenderWidgetHostView* view); | 89 void SetChildRWHView(RenderWidgetHostView* view); |
90 | 90 |
91 // TODO(nasko): The following methods should be removed once we don't have a | 91 // TODO(nasko): The following methods should be removed once we don't have a |
92 // swapped out state on RenderFrameHosts. See https://crbug.com/357747. | 92 // swapped out state on RenderFrameHosts. See https://crbug.com/357747. |
93 RenderFrameHostImpl* render_frame_host() { | 93 RenderFrameHostImpl* render_frame_host() { |
94 return render_frame_host_.get(); | 94 return render_frame_host_.get(); |
95 } | 95 } |
96 RenderViewHostImpl* GetRenderViewHost(); | 96 RenderViewHostImpl* GetRenderViewHost(); |
97 RenderWidgetHostView* GetRenderWidgetHostView(); | 97 RenderWidgetHostView* GetRenderWidgetHostView(); |
98 | 98 |
99 void TakeFrameHostOwnership( | |
100 scoped_ptr<RenderFrameHostImpl> render_frame_host); | |
101 scoped_ptr<RenderFrameHostImpl> PassFrameHostOwnership(); | |
102 | |
103 // IPC::Sender | 99 // IPC::Sender |
104 bool Send(IPC::Message* msg) override; | 100 bool Send(IPC::Message* msg) override; |
105 | 101 |
106 // IPC::Listener | 102 // IPC::Listener |
107 bool OnMessageReceived(const IPC::Message& msg) override; | 103 bool OnMessageReceived(const IPC::Message& msg) override; |
108 | 104 |
109 CrossProcessFrameConnector* cross_process_frame_connector() { | 105 CrossProcessFrameConnector* cross_process_frame_connector() { |
110 return cross_process_frame_connector_.get(); | 106 return cross_process_frame_connector_.get(); |
111 } | 107 } |
112 | 108 |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 // kept alive as long as any RenderFrameHosts or RenderFrameProxyHosts | 164 // kept alive as long as any RenderFrameHosts or RenderFrameProxyHosts |
169 // are associated with it. | 165 // are associated with it. |
170 RenderViewHostImpl* render_view_host_; | 166 RenderViewHostImpl* render_view_host_; |
171 | 167 |
172 DISALLOW_COPY_AND_ASSIGN(RenderFrameProxyHost); | 168 DISALLOW_COPY_AND_ASSIGN(RenderFrameProxyHost); |
173 }; | 169 }; |
174 | 170 |
175 } // namespace | 171 } // namespace |
176 | 172 |
177 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_PROXY_HOST_H_ | 173 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_PROXY_HOST_H_ |
OLD | NEW |