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