OLD | NEW |
---|---|
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 621 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
632 // We only buffer a suspended navigation message while we a pending RVH for a | 632 // We only buffer a suspended navigation message while we a pending RVH for a |
633 // TabContents. There will only ever be one suspended navigation, because | 633 // TabContents. There will only ever be one suspended navigation, because |
634 // TabContents will destroy the pending RVH and create a new one if a second | 634 // TabContents will destroy the pending RVH and create a new one if a second |
635 // navigation occurs. | 635 // navigation occurs. |
636 scoped_ptr<ViewMsg_Navigate> suspended_nav_message_; | 636 scoped_ptr<ViewMsg_Navigate> suspended_nav_message_; |
637 | 637 |
638 // If we were asked to RunModal, then this will hold the reply_msg that we | 638 // If we were asked to RunModal, then this will hold the reply_msg that we |
639 // must return to the renderer to unblock it. | 639 // must return to the renderer to unblock it. |
640 IPC::Message* run_modal_reply_msg_; | 640 IPC::Message* run_modal_reply_msg_; |
641 | 641 |
642 // Set to true when there is an active "before unload" dialog. When true, | |
643 // we've forced the throbber to start in Navigate, and we need to remember to | |
644 // turn it off in JavaScriptMessageBoxClosed if the navigation is canceled. | |
645 bool is_showing_before_unload_dialog_; | |
tony
2009/10/14 23:20:06
Nit: Can you explain why this moved in the change
jam
2009/10/14 23:31:11
Oh, that doesn't fix any bug. It's just convenien
| |
646 | |
647 // Set to true when there is a pending ViewMsg_ShouldClose message pending. | 642 // Set to true when there is a pending ViewMsg_ShouldClose message pending. |
648 // This ensures we don't spam the renderer many times to close. When true, | 643 // This ensures we don't spam the renderer many times to close. When true, |
649 // the value of unload_ack_is_for_cross_site_transition_ indicates which type | 644 // the value of unload_ack_is_for_cross_site_transition_ indicates which type |
650 // of unload this is for. | 645 // of unload this is for. |
651 bool is_waiting_for_unload_ack_; | 646 bool is_waiting_for_unload_ack_; |
652 | 647 |
653 // Valid only when is_waiting_for_unload_ack_ is true, this tells us if the | 648 // Valid only when is_waiting_for_unload_ack_ is true, this tells us if the |
654 // unload request is for closing the entire tab ( = false), or only this | 649 // unload request is for closing the entire tab ( = false), or only this |
655 // RenderViewHost in the case of a cross-site transition ( = true). | 650 // RenderViewHost in the case of a cross-site transition ( = true). |
656 bool unload_ack_is_for_cross_site_transition_; | 651 bool unload_ack_is_for_cross_site_transition_; |
657 | 652 |
658 bool are_javascript_messages_suppressed_; | 653 bool are_javascript_messages_suppressed_; |
659 | 654 |
660 // True if the render view can be shut down suddenly. | 655 // True if the render view can be shut down suddenly. |
661 bool sudden_termination_allowed_; | 656 bool sudden_termination_allowed_; |
662 | 657 |
663 // DevTools triggers this mode when user chooses inspect lens tool. | 658 // DevTools triggers this mode when user chooses inspect lens tool. |
664 // While in this mode, mouse click is converted into InspectElement | 659 // While in this mode, mouse click is converted into InspectElement |
665 // command. | 660 // command. |
666 bool in_inspect_element_mode_; | 661 bool in_inspect_element_mode_; |
667 | 662 |
668 NotificationRegistrar registrar_; | 663 NotificationRegistrar registrar_; |
669 | 664 |
670 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); | 665 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); |
671 }; | 666 }; |
672 | 667 |
673 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 668 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
OLD | NEW |