| 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 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 314 | 314 |
| 315 // The current state of this RVH. | 315 // The current state of this RVH. |
| 316 RenderViewHostImplState rvh_state() const { return rvh_state_; } | 316 RenderViewHostImplState rvh_state() const { return rvh_state_; } |
| 317 | 317 |
| 318 // Tells the renderer that this RenderView will soon be swapped out, and thus | 318 // Tells the renderer that this RenderView will soon be swapped out, and thus |
| 319 // not to create any new modal dialogs until it happens. This must be done | 319 // not to create any new modal dialogs until it happens. This must be done |
| 320 // separately so that the PageGroupLoadDeferrers of any current dialogs are no | 320 // separately so that the PageGroupLoadDeferrers of any current dialogs are no |
| 321 // longer on the stack when we attempt to swap it out. | 321 // longer on the stack when we attempt to swap it out. |
| 322 void SuppressDialogsUntilSwapOut(); | 322 void SuppressDialogsUntilSwapOut(); |
| 323 | 323 |
| 324 // Tells the renderer that this RenderView is being swapped out for one in a | |
| 325 // different renderer process. It should run its unload handler and move to | |
| 326 // a blank document. The renderer should preserve the Frame object until it | |
| 327 // exits, in case we come back. The renderer can exit if it has no other | |
| 328 // active RenderViews, but not until WasSwappedOut is called (when it is no | |
| 329 // longer visible). | |
| 330 void SwapOut(); | |
| 331 | |
| 332 // Called when either the SwapOut request has been acknowledged or has timed | 324 // Called when either the SwapOut request has been acknowledged or has timed |
| 333 // out. | 325 // out. |
| 334 void OnSwappedOut(bool timed_out); | 326 void OnSwappedOut(bool timed_out); |
| 335 | 327 |
| 336 // Called when the RenderFrameHostManager has swapped in a new | 328 // Called when the RenderFrameHostManager has swapped in a new |
| 337 // RenderFrameHost. Should |this| RVH switch to the pending shutdown state, | 329 // RenderFrameHost. Should |this| RVH switch to the pending shutdown state, |
| 338 // |pending_delete_on_swap_out| will be executed upon reception of the | 330 // |pending_delete_on_swap_out| will be executed upon reception of the |
| 339 // SwapOutACK, or when the unload timer times out. | 331 // SwapOutACK, or when the unload timer times out. |
| 340 void WasSwappedOut(const base::Closure& pending_delete_on_swap_out); | 332 void WasSwappedOut(const base::Closure& pending_delete_on_swap_out); |
| 341 | 333 |
| (...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 566 void OnTargetDropACK(); | 558 void OnTargetDropACK(); |
| 567 void OnTakeFocus(bool reverse); | 559 void OnTakeFocus(bool reverse); |
| 568 void OnFocusedNodeChanged(bool is_editable_node); | 560 void OnFocusedNodeChanged(bool is_editable_node); |
| 569 void OnAddMessageToConsole(int32 level, | 561 void OnAddMessageToConsole(int32 level, |
| 570 const base::string16& message, | 562 const base::string16& message, |
| 571 int32 line_no, | 563 int32 line_no, |
| 572 const base::string16& source_id); | 564 const base::string16& source_id); |
| 573 void OnUpdateInspectorSetting(const std::string& key, | 565 void OnUpdateInspectorSetting(const std::string& key, |
| 574 const std::string& value); | 566 const std::string& value); |
| 575 void OnClosePageACK(); | 567 void OnClosePageACK(); |
| 576 void OnSwapOutACK(); | |
| 577 void OnAccessibilityEvents( | 568 void OnAccessibilityEvents( |
| 578 const std::vector<AccessibilityHostMsg_EventParams>& params); | 569 const std::vector<AccessibilityHostMsg_EventParams>& params); |
| 579 void OnAccessibilityLocationChanges( | 570 void OnAccessibilityLocationChanges( |
| 580 const std::vector<AccessibilityHostMsg_LocationChangeParams>& params); | 571 const std::vector<AccessibilityHostMsg_LocationChangeParams>& params); |
| 581 void OnScriptEvalResponse(int id, const base::ListValue& result); | 572 void OnScriptEvalResponse(int id, const base::ListValue& result); |
| 582 void OnDidZoomURL(double zoom_level, bool remember, const GURL& url); | 573 void OnDidZoomURL(double zoom_level, bool remember, const GURL& url); |
| 583 void OnRequestDesktopNotificationPermission(const GURL& origin, | 574 void OnRequestDesktopNotificationPermission(const GURL& origin, |
| 584 int callback_id); | 575 int callback_id); |
| 585 void OnShowDesktopNotification( | 576 void OnShowDesktopNotification( |
| 586 const ShowDesktopNotificationHostMsgParams& params); | 577 const ShowDesktopNotificationHostMsgParams& params); |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 726 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); | 717 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); |
| 727 }; | 718 }; |
| 728 | 719 |
| 729 #if defined(COMPILER_MSVC) | 720 #if defined(COMPILER_MSVC) |
| 730 #pragma warning(pop) | 721 #pragma warning(pop) |
| 731 #endif | 722 #endif |
| 732 | 723 |
| 733 } // namespace content | 724 } // namespace content |
| 734 | 725 |
| 735 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ | 726 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
| OLD | NEW |