| 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_VIEW_HOST_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 RenderViewHostImpl(SiteInstance* instance, | 118 RenderViewHostImpl(SiteInstance* instance, |
| 119 RenderViewHostDelegate* delegate, | 119 RenderViewHostDelegate* delegate, |
| 120 RenderWidgetHostDelegate* widget_delegate, | 120 RenderWidgetHostDelegate* widget_delegate, |
| 121 int32 routing_id, | 121 int32 routing_id, |
| 122 int32 main_frame_routing_id, | 122 int32 main_frame_routing_id, |
| 123 bool swapped_out, | 123 bool swapped_out, |
| 124 bool hidden, | 124 bool hidden, |
| 125 bool has_initialized_audio_host); | 125 bool has_initialized_audio_host); |
| 126 ~RenderViewHostImpl() override; | 126 ~RenderViewHostImpl() override; |
| 127 | 127 |
| 128 // Shuts down this RenderViewHost and deletes it. |
| 129 void ShutdownAndDestroy(); |
| 130 |
| 128 // RenderViewHost implementation. | 131 // RenderViewHost implementation. |
| 129 bool Send(IPC::Message* msg) override; | 132 bool Send(IPC::Message* msg) override; |
| 130 RenderWidgetHostImpl* GetWidget() const override; | 133 RenderWidgetHostImpl* GetWidget() const override; |
| 131 RenderProcessHost* GetProcess() const override; | 134 RenderProcessHost* GetProcess() const override; |
| 132 int GetRoutingID() const override; | 135 int GetRoutingID() const override; |
| 133 RenderFrameHost* GetMainFrame() override; | 136 RenderFrameHost* GetMainFrame() override; |
| 134 void AllowBindings(int binding_flags) override; | 137 void AllowBindings(int binding_flags) override; |
| 135 void ClearFocusedElement() override; | 138 void ClearFocusedElement() override; |
| 136 bool IsFocusedElementEditable() override; | 139 bool IsFocusedElementEditable() override; |
| 137 void CopyImageAt(int x, int y) override; | 140 void CopyImageAt(int x, int y) override; |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 const net::LoadStateWithParam& load_state, | 274 const net::LoadStateWithParam& load_state, |
| 272 uint64 upload_position, | 275 uint64 upload_position, |
| 273 uint64 upload_size); | 276 uint64 upload_size); |
| 274 | 277 |
| 275 bool SuddenTerminationAllowed() const; | 278 bool SuddenTerminationAllowed() const; |
| 276 void set_sudden_termination_allowed(bool enabled) { | 279 void set_sudden_termination_allowed(bool enabled) { |
| 277 sudden_termination_allowed_ = enabled; | 280 sudden_termination_allowed_ = enabled; |
| 278 } | 281 } |
| 279 | 282 |
| 280 // RenderWidgetHost public overrides. | 283 // RenderWidgetHost public overrides. |
| 281 void Shutdown() override; | |
| 282 bool OnMessageReceived(const IPC::Message& msg) override; | 284 bool OnMessageReceived(const IPC::Message& msg) override; |
| 283 | 285 |
| 284 // Creates a new RenderView with the given route id. | 286 // Creates a new RenderView with the given route id. |
| 285 void CreateNewWindow(int32_t route_id, | 287 void CreateNewWindow(int32_t route_id, |
| 286 int32_t main_frame_route_id, | 288 int32_t main_frame_route_id, |
| 287 int32_t main_frame_widget_route_id, | 289 int32_t main_frame_widget_route_id, |
| 288 const ViewHostMsg_CreateWindow_Params& params, | 290 const ViewHostMsg_CreateWindow_Params& params, |
| 289 SessionStorageNamespace* session_storage_namespace); | 291 SessionStorageNamespace* session_storage_namespace); |
| 290 | 292 |
| 291 // Creates a new RenderWidget with the given route id. |popup_type| indicates | 293 // Creates a new RenderWidget with the given route id. |popup_type| indicates |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 474 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); | 476 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); |
| 475 }; | 477 }; |
| 476 | 478 |
| 477 #if defined(COMPILER_MSVC) | 479 #if defined(COMPILER_MSVC) |
| 478 #pragma warning(pop) | 480 #pragma warning(pop) |
| 479 #endif | 481 #endif |
| 480 | 482 |
| 481 } // namespace content | 483 } // namespace content |
| 482 | 484 |
| 483 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ | 485 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
| OLD | NEW |