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 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 // Signal whether this RenderWidgetHost is owned by a RenderFrameHost, in | 197 // Signal whether this RenderWidgetHost is owned by a RenderFrameHost, in |
198 // which case it does not do self-deletion. | 198 // which case it does not do self-deletion. |
199 void set_owned_by_render_frame_host(bool owned_by_rfh) { | 199 void set_owned_by_render_frame_host(bool owned_by_rfh) { |
200 owned_by_render_frame_host_ = owned_by_rfh; | 200 owned_by_render_frame_host_ = owned_by_rfh; |
201 } | 201 } |
202 | 202 |
203 // Called by RenderFrameHost before destroying this object. | 203 // Called by RenderFrameHost before destroying this object. |
204 void Cleanup(); | 204 void Cleanup(); |
205 | 205 |
206 // Tells the renderer to die and then calls Destroy(). | 206 // Tells the renderer to die and then calls Destroy(). |
207 virtual void Shutdown(); | 207 void Shutdown(); |
208 | 208 |
209 // IPC::Listener | 209 // IPC::Listener |
210 bool OnMessageReceived(const IPC::Message& msg) override; | 210 bool OnMessageReceived(const IPC::Message& msg) override; |
211 | 211 |
212 // Sends a message to the corresponding object in the renderer. | 212 // Sends a message to the corresponding object in the renderer. |
213 bool Send(IPC::Message* msg) override; | 213 bool Send(IPC::Message* msg) override; |
214 | 214 |
215 // Indicates if the page has finished loading. | 215 // Indicates if the page has finished loading. |
216 virtual void SetIsLoading(bool is_loading); | 216 virtual void SetIsLoading(bool is_loading); |
217 | 217 |
(...skipping 643 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
861 bool is_focused_; | 861 bool is_focused_; |
862 | 862 |
863 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; | 863 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; |
864 | 864 |
865 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 865 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
866 }; | 866 }; |
867 | 867 |
868 } // namespace content | 868 } // namespace content |
869 | 869 |
870 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 870 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
OLD | NEW |