OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_WIDGET_HOST_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <deque> | 9 #include <deque> |
10 #include <string> | 10 #include <string> |
(...skipping 694 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
705 | 705 |
706 // If true, then we should repaint when restoring even if we have a | 706 // If true, then we should repaint when restoring even if we have a |
707 // backingstore. This flag is set to true if we receive a paint message | 707 // backingstore. This flag is set to true if we receive a paint message |
708 // while is_hidden_ to true. Even though we tell the render widget to hide | 708 // while is_hidden_ to true. Even though we tell the render widget to hide |
709 // itself, a paint message could already be in flight at that point. | 709 // itself, a paint message could already be in flight at that point. |
710 bool needs_repainting_on_restore_; | 710 bool needs_repainting_on_restore_; |
711 | 711 |
712 // This is true if the renderer is currently unresponsive. | 712 // This is true if the renderer is currently unresponsive. |
713 bool is_unresponsive_; | 713 bool is_unresponsive_; |
714 | 714 |
715 // The following value indicates a time in the future when we would consider | 715 // This is true if we are currently monitoring for a hung renderer. |
716 // the renderer hung if it does not generate an appropriate response message. | 716 bool is_monitoring_for_hung_renderer_; |
717 base::Time time_when_considered_hung_; | |
718 | 717 |
719 // This timer runs to check if time_when_considered_hung_ has past. | 718 // Last time we heard from the renderer. |
| 719 base::TimeTicks time_of_last_renderer_response_; |
| 720 |
| 721 // This timer runs to check if the renderer is unresponsive. |
720 base::OneShotTimer<RenderWidgetHost> hung_renderer_timer_; | 722 base::OneShotTimer<RenderWidgetHost> hung_renderer_timer_; |
721 | 723 |
722 // Flag to detect recursive calls to GetBackingStore(). | 724 // Flag to detect recursive calls to GetBackingStore(). |
723 bool in_get_backing_store_; | 725 bool in_get_backing_store_; |
724 | 726 |
725 // Set when we call DidPaintRect/DidScrollRect on the view. | 727 // Set when we call DidPaintRect/DidScrollRect on the view. |
726 bool view_being_painted_; | 728 bool view_being_painted_; |
727 | 729 |
728 // Used for UMA histogram logging to measure the time for a repaint view | 730 // Used for UMA histogram logging to measure the time for a repaint view |
729 // operation to finish. | 731 // operation to finish. |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
770 gfx::Point last_scroll_offset_; | 772 gfx::Point last_scroll_offset_; |
771 | 773 |
772 bool pending_mouse_lock_request_; | 774 bool pending_mouse_lock_request_; |
773 | 775 |
774 base::WeakPtrFactory<RenderWidgetHost> weak_factory_; | 776 base::WeakPtrFactory<RenderWidgetHost> weak_factory_; |
775 | 777 |
776 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHost); | 778 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHost); |
777 }; | 779 }; |
778 | 780 |
779 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ | 781 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ |
OLD | NEW |