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

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

Issue 9129024: Fix for crbug.com/111185. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed Darin comments. Created 8 years, 11 months 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
« no previous file with comments | « no previous file | content/browser/renderer_host/render_widget_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_widget_host.h
diff --git a/content/browser/renderer_host/render_widget_host.h b/content/browser/renderer_host/render_widget_host.h
index 43c19059a37ce4fefa4d7069870c895a51134678..924114550aed7c3146b99e3c486cf4d35085b64a 100644
--- a/content/browser/renderer_host/render_widget_host.h
+++ b/content/browser/renderer_host/render_widget_host.h
@@ -533,6 +533,9 @@ class CONTENT_EXPORT RenderWidgetHost : public IPC::Channel::Listener,
// initialization.
bool renderer_initialized_;
+ // This value indicates how long to wait before we consider a renderer hung.
+ int hung_renderer_delay_ms_;
+
private:
FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostTest, Resize);
FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostTest, ResizeThenCrash);
@@ -743,6 +746,10 @@ class CONTENT_EXPORT RenderWidgetHost : public IPC::Channel::Listener,
// the renderer hung if it does not generate an appropriate response message.
base::Time time_when_considered_hung_;
+ // This value denotes the number of input events yet to be acknowledged
+ // by the renderer.
+ int in_flight_event_count_;
+
// This timer runs to check if time_when_considered_hung_ has past.
base::OneShotTimer<RenderWidgetHost> hung_renderer_timer_;
« no previous file with comments | « no previous file | content/browser/renderer_host/render_widget_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698