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 b66a6cd532da0b63a0e5f099a1b702a21aab5cee..ea20b8d5d33fc41ca09b760917ead0dbc80d15dd 100644 |
--- a/content/browser/renderer_host/render_widget_host_impl.h |
+++ b/content/browser/renderer_host/render_widget_host_impl.h |
@@ -419,6 +419,11 @@ class CONTENT_EXPORT RenderWidgetHostImpl : virtual public RenderWidgetHost, |
void SetShouldAutoResize(bool enable); |
protected: |
+ // Expose increment/decrement of the in-flight event count, so |
+ // RenderViewHostImpl can account for in-flight beforeunload/unload events. |
+ int increment_in_flight_event_count() { return ++in_flight_event_count_; } |
+ int decrement_in_flight_event_count() { return --in_flight_event_count_; } |
+ |
// The View associated with the RenderViewHost. The lifetime of this object |
// is associated with the lifetime of the Render process. If the Renderer |
// crashes, its View is destroyed and this pointer becomes NULL, even though |