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_WIDGET_HOST_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <map> | 9 #include <map> |
| 10 #include <queue> |
10 #include <string> | 11 #include <string> |
11 #include <vector> | 12 #include <vector> |
12 | 13 |
13 #include "base/callback.h" | 14 #include "base/callback.h" |
14 #include "base/gtest_prod_util.h" | 15 #include "base/gtest_prod_util.h" |
15 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
16 #include "base/memory/weak_ptr.h" | 17 #include "base/memory/weak_ptr.h" |
17 #include "base/process_util.h" | 18 #include "base/process_util.h" |
18 #include "base/string16.h" | 19 #include "base/string16.h" |
19 #include "base/timer.h" | 20 #include "base/timer.h" |
(...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
483 RenderWidgetHostViewPort* view_; | 484 RenderWidgetHostViewPort* view_; |
484 | 485 |
485 // true if a renderer has once been valid. We use this flag to display a sad | 486 // true if a renderer has once been valid. We use this flag to display a sad |
486 // tab only when we lose our renderer and not if a paint occurs during | 487 // tab only when we lose our renderer and not if a paint occurs during |
487 // initialization. | 488 // initialization. |
488 bool renderer_initialized_; | 489 bool renderer_initialized_; |
489 | 490 |
490 // This value indicates how long to wait before we consider a renderer hung. | 491 // This value indicates how long to wait before we consider a renderer hung. |
491 int hung_renderer_delay_ms_; | 492 int hung_renderer_delay_ms_; |
492 | 493 |
| 494 std::queue<WebKit::WebInputEvent::Type> in_process_event_types_; |
| 495 |
493 private: | 496 private: |
494 friend class ::MockRenderWidgetHost; | 497 friend class ::MockRenderWidgetHost; |
495 | 498 |
496 // Tell this object to destroy itself. | 499 // Tell this object to destroy itself. |
497 void Destroy(); | 500 void Destroy(); |
498 | 501 |
499 // Checks whether the renderer is hung and calls NotifyRendererUnresponsive | 502 // Checks whether the renderer is hung and calls NotifyRendererUnresponsive |
500 // if it is. | 503 // if it is. |
501 void CheckRendererIsUnresponsive(); | 504 void CheckRendererIsUnresponsive(); |
502 | 505 |
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
801 SmoothScrollGestureMap active_smooth_scroll_gestures_; | 804 SmoothScrollGestureMap active_smooth_scroll_gestures_; |
802 | 805 |
803 scoped_ptr<GestureEventFilter> gesture_event_filter_; | 806 scoped_ptr<GestureEventFilter> gesture_event_filter_; |
804 | 807 |
805 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 808 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
806 }; | 809 }; |
807 | 810 |
808 } // namespace content | 811 } // namespace content |
809 | 812 |
810 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 813 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
OLD | NEW |