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 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
282 // page, making it unsafe to show the pending URL. Always false after the | 282 // page, making it unsafe to show the pending URL. Always false after the |
283 // first commit. | 283 // first commit. |
284 bool has_accessed_initial_document() { | 284 bool has_accessed_initial_document() { |
285 return has_accessed_initial_document_; | 285 return has_accessed_initial_document_; |
286 } | 286 } |
287 | 287 |
288 // Whether this RenderViewHost has been swapped out to be displayed by a | 288 // Whether this RenderViewHost has been swapped out to be displayed by a |
289 // different process. | 289 // different process. |
290 bool is_swapped_out() const { return is_swapped_out_; } | 290 bool is_swapped_out() const { return is_swapped_out_; } |
291 | 291 |
| 292 // Tells the renderer that this RenderView will soon be swapped out, and thus |
| 293 // not to create any new modal dialogs until it happens. This must be done |
| 294 // separately so that the PageGroupLoadDeferrers of any current dialogs are no |
| 295 // longer on the stack when we attempt to swap it out. |
| 296 void SuppressDialogsUntilSwapOut(); |
| 297 |
292 // Tells the renderer that this RenderView is being swapped out for one in a | 298 // Tells the renderer that this RenderView is being swapped out for one in a |
293 // different renderer process. It should run its unload handler and move to | 299 // different renderer process. It should run its unload handler and move to |
294 // a blank document. The renderer should preserve the Frame object until it | 300 // a blank document. The renderer should preserve the Frame object until it |
295 // exits, in case we come back. The renderer can exit if it has no other | 301 // exits, in case we come back. The renderer can exit if it has no other |
296 // active RenderViews, but not until WasSwappedOut is called (when it is no | 302 // active RenderViews, but not until WasSwappedOut is called (when it is no |
297 // longer visible). | 303 // longer visible). |
298 void SwapOut(); | 304 void SwapOut(); |
299 | 305 |
300 // Called when either the SwapOut request has been acknowledged or has timed | 306 // Called when either the SwapOut request has been acknowledged or has timed |
301 // out. | 307 // out. |
(...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
730 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); | 736 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); |
731 }; | 737 }; |
732 | 738 |
733 #if defined(COMPILER_MSVC) | 739 #if defined(COMPILER_MSVC) |
734 #pragma warning(pop) | 740 #pragma warning(pop) |
735 #endif | 741 #endif |
736 | 742 |
737 } // namespace content | 743 } // namespace content |
738 | 744 |
739 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ | 745 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
OLD | NEW |