Index: content/browser/renderer_host/render_widget_host_delegate.h |
diff --git a/content/browser/renderer_host/render_widget_host_delegate.h b/content/browser/renderer_host/render_widget_host_delegate.h |
index 6777b9c999261e7fc63cbc10a9d51c45dbc9a3ff..6593b826ea7c099f7b8e121cf58eb1da6fee510f 100644 |
--- a/content/browser/renderer_host/render_widget_host_delegate.h |
+++ b/content/browser/renderer_host/render_widget_host_delegate.h |
@@ -133,9 +133,25 @@ class CONTENT_EXPORT RenderWidgetHostDelegate { |
virtual RenderWidgetHostImpl* GetFocusedRenderWidgetHost( |
RenderWidgetHostImpl* receiving_widget); |
+ // Enum used in histograms to differentiate between the different |
nasko
2016/07/12 17:18:02
nit: Enum is redundant, as it is obvious from the
clamy
2016/07/13 10:02:21
Done.
|
+ // types of renderer hang reported by |
+ // RenderWidgetHostDelegate::RendererUnresponsive. |
+ // Only add values at the end, do not delete values. |
nasko
2016/07/12 17:18:02
Does that mean we will keep this enum/UMA forever?
Alexei Svitkine (slow)
2016/07/12 18:36:40
You can always delete histograms. That's fine.
Th
clamy
2016/07/13 10:02:21
I'm not sure how DumpWithoutCrashing works, and it
nasko
2016/07/15 17:32:08
DumpWithoutCrashing literally does what it says -
|
+ enum RendererUnresponsiveType { |
+ RENDERER_UNRESPONSIVE_UNKNOWN = 0, |
+ RENDERER_UNRESPONSIVE_IN_FLIGHT_EVENTS = 1, |
+ RENDERER_UNRESPONSIVE_DIALOG_CLOSED = 2, |
+ RENDERER_UNRESPONSIVE_DIALOG_SUPPRESSED = 3, |
+ RENDERER_UNRESPONSIVE_BEFORE_UNLOAD = 4, |
+ RENDERER_UNRESPONSIVE_UNLOAD = 5, |
+ RENDERER_UNRESPONSIVE_CLOSE_PAGE = 6, |
+ RENDERER_UNRESPONSIVE_MAX = RENDERER_UNRESPONSIVE_CLOSE_PAGE, |
+ }; |
+ |
// Notification that the renderer has become unresponsive. The |
// delegate can use this notification to show a warning to the user. |
- virtual void RendererUnresponsive(RenderWidgetHostImpl* render_widget_host) {} |
+ virtual void RendererUnresponsive(RenderWidgetHostImpl* render_widget_host, |
+ RendererUnresponsiveType type) {} |
// Notification that a previously unresponsive renderer has become |
// responsive again. The delegate can use this notification to end the |