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