OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <list> | 9 #include <list> |
10 #include <map> | 10 #include <map> |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 | 194 |
195 // Initializes a RenderWidgetHost that is attached to a RenderFrameHost. | 195 // Initializes a RenderWidgetHost that is attached to a RenderFrameHost. |
196 void InitForFrame(); | 196 void InitForFrame(); |
197 | 197 |
198 // Signal whether this RenderWidgetHost is owned by a RenderFrameHost, in | 198 // Signal whether this RenderWidgetHost is owned by a RenderFrameHost, in |
199 // which case it does not do self-deletion. | 199 // which case it does not do self-deletion. |
200 void set_owned_by_render_frame_host(bool owned_by_rfh) { | 200 void set_owned_by_render_frame_host(bool owned_by_rfh) { |
201 owned_by_render_frame_host_ = owned_by_rfh; | 201 owned_by_render_frame_host_ = owned_by_rfh; |
202 } | 202 } |
203 | 203 |
204 // Called by RenderFrameHost before destroying this object. | |
205 void Cleanup(); | |
206 | |
207 // Tells the renderer to die and then calls Destroy(). | 204 // Tells the renderer to die and then calls Destroy(). |
208 virtual void Shutdown(); | 205 virtual void Shutdown(); |
209 | 206 |
210 // IPC::Listener | 207 // IPC::Listener |
211 bool OnMessageReceived(const IPC::Message& msg) override; | 208 bool OnMessageReceived(const IPC::Message& msg) override; |
212 | 209 |
213 // Sends a message to the corresponding object in the renderer. | 210 // Sends a message to the corresponding object in the renderer. |
214 bool Send(IPC::Message* msg) override; | 211 bool Send(IPC::Message* msg) override; |
215 | 212 |
216 // Indicates if the page has finished loading. | 213 // Indicates if the page has finished loading. |
(...skipping 637 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
854 bool is_focused_; | 851 bool is_focused_; |
855 | 852 |
856 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; | 853 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; |
857 | 854 |
858 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 855 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
859 }; | 856 }; |
860 | 857 |
861 } // namespace content | 858 } // namespace content |
862 | 859 |
863 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 860 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
OLD | NEW |