Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6476)

Unified Diff: content/browser/renderer_host/render_widget_host_impl.h

Issue 48973005: Move TouchEvent timeout code to the TouchEventQueue (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/render_widget_host_impl.h
diff --git a/content/browser/renderer_host/render_widget_host_impl.h b/content/browser/renderer_host/render_widget_host_impl.h
index 9b94a443a76053f64499ee169e4c45110b202dbe..d1231cac59e114d85b14c29a2dba13ae080f5293 100644
--- a/content/browser/renderer_host/render_widget_host_impl.h
+++ b/content/browser/renderer_host/render_widget_host_impl.h
@@ -83,6 +83,7 @@ class OverscrollController;
class RenderWidgetHostDelegate;
class RenderWidgetHostViewPort;
class SyntheticGestureController;
+class TimeoutMonitor;
struct EditCommand;
// This implements the RenderWidgetHost interface that is exposed to
@@ -636,9 +637,8 @@ class CONTENT_EXPORT RenderWidgetHostImpl : virtual public RenderWidgetHost,
// Tell this object to destroy itself.
void Destroy();
- // Checks whether the renderer is hung and calls NotifyRendererUnresponsive
- // if it is.
- void CheckRendererIsUnresponsive();
+ // Called by |hang_timeout_monitor_| on delayed response from the renderer.
+ void RendererIsUnresponsive();
// Called if we know the renderer is responsive. When we currently think the
// renderer is unresponsive, this will clear that state and call
@@ -910,6 +910,8 @@ class CONTENT_EXPORT RenderWidgetHostImpl : virtual public RenderWidgetHost,
scoped_ptr<OverscrollController> overscroll_controller_;
+ scoped_ptr<TimeoutMonitor> hang_monitor_timeout_;
+
#if defined(OS_WIN)
std::list<HWND> dummy_windows_for_activation_;
#endif

Powered by Google App Engine
This is Rietveld 408576698