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 ca16dbc5e4cde46ccce7b5342d846f2f953eb2dd..adc6674ee3b1cf19f97522ba326969b932702926 100644 |
--- a/content/browser/renderer_host/render_widget_host_impl.h |
+++ b/content/browser/renderer_host/render_widget_host_impl.h |
@@ -414,6 +414,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 |