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 452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
472 RenderWidgetHostViewPort* view_; | 473 RenderWidgetHostViewPort* view_; |
473 | 474 |
474 // true if a renderer has once been valid. We use this flag to display a sad | 475 // true if a renderer has once been valid. We use this flag to display a sad |
475 // tab only when we lose our renderer and not if a paint occurs during | 476 // tab only when we lose our renderer and not if a paint occurs during |
476 // initialization. | 477 // initialization. |
477 bool renderer_initialized_; | 478 bool renderer_initialized_; |
478 | 479 |
479 // This value indicates how long to wait before we consider a renderer hung. | 480 // This value indicates how long to wait before we consider a renderer hung. |
480 int hung_renderer_delay_ms_; | 481 int hung_renderer_delay_ms_; |
481 | 482 |
| 483 std::queue<WebKit::WebInputEvent::Type> in_process_event_types_; |
| 484 |
482 private: | 485 private: |
483 friend class ::MockRenderWidgetHost; | 486 friend class ::MockRenderWidgetHost; |
484 | 487 |
485 // Tell this object to destroy itself. | 488 // Tell this object to destroy itself. |
486 void Destroy(); | 489 void Destroy(); |
487 | 490 |
488 // Checks whether the renderer is hung and calls NotifyRendererUnresponsive | 491 // Checks whether the renderer is hung and calls NotifyRendererUnresponsive |
489 // if it is. | 492 // if it is. |
490 void CheckRendererIsUnresponsive(); | 493 void CheckRendererIsUnresponsive(); |
491 | 494 |
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
790 SmoothScrollGestureMap active_smooth_scroll_gestures_; | 793 SmoothScrollGestureMap active_smooth_scroll_gestures_; |
791 | 794 |
792 scoped_ptr<GestureEventFilter> gesture_event_filter_; | 795 scoped_ptr<GestureEventFilter> gesture_event_filter_; |
793 | 796 |
794 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 797 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
795 }; | 798 }; |
796 | 799 |
797 } // namespace content | 800 } // namespace content |
798 | 801 |
799 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 802 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
OLD | NEW |