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 <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 631 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
642 // ensures we don't spam the renderer with multiple beforeunload requests. | 642 // ensures we don't spam the renderer with multiple beforeunload requests. |
643 // When either this value or is_waiting_for_unload_ack_ is true, the value of | 643 // When either this value or is_waiting_for_unload_ack_ is true, the value of |
644 // unload_ack_is_for_cross_site_transition_ indicates whether this is for a | 644 // unload_ack_is_for_cross_site_transition_ indicates whether this is for a |
645 // cross-site transition or a tab close attempt. | 645 // cross-site transition or a tab close attempt. |
646 bool is_waiting_for_beforeunload_ack_; | 646 bool is_waiting_for_beforeunload_ack_; |
647 | 647 |
648 // Set to true when there is a pending ViewMsg_Close message. Also see | 648 // Set to true when there is a pending ViewMsg_Close message. Also see |
649 // is_waiting_for_beforeunload_ack_, unload_ack_is_for_cross_site_transition_. | 649 // is_waiting_for_beforeunload_ack_, unload_ack_is_for_cross_site_transition_. |
650 bool is_waiting_for_unload_ack_; | 650 bool is_waiting_for_unload_ack_; |
651 | 651 |
| 652 // Set to true when waiting for ViewHostMsg_SwapOut_ACK has timed out. |
| 653 bool has_timed_out_on_unload_; |
| 654 |
652 // Valid only when is_waiting_for_beforeunload_ack_ or | 655 // Valid only when is_waiting_for_beforeunload_ack_ or |
653 // is_waiting_for_unload_ack_ is true. This tells us if the unload request | 656 // is_waiting_for_unload_ack_ is true. This tells us if the unload request |
654 // is for closing the entire tab ( = false), or only this RenderViewHost in | 657 // is for closing the entire tab ( = false), or only this RenderViewHost in |
655 // the case of a cross-site transition ( = true). | 658 // the case of a cross-site transition ( = true). |
656 bool unload_ack_is_for_cross_site_transition_; | 659 bool unload_ack_is_for_cross_site_transition_; |
657 | 660 |
658 bool are_javascript_messages_suppressed_; | 661 bool are_javascript_messages_suppressed_; |
659 | 662 |
660 // True if the render view can be shut down suddenly. | 663 // True if the render view can be shut down suddenly. |
661 bool sudden_termination_allowed_; | 664 bool sudden_termination_allowed_; |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
697 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); | 700 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); |
698 }; | 701 }; |
699 | 702 |
700 #if defined(COMPILER_MSVC) | 703 #if defined(COMPILER_MSVC) |
701 #pragma warning(pop) | 704 #pragma warning(pop) |
702 #endif | 705 #endif |
703 | 706 |
704 } // namespace content | 707 } // namespace content |
705 | 708 |
706 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ | 709 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
OLD | NEW |