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..205e6b290323ff78b87e30ce9cfb0d642463ee41 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 IncrementInFlightEventCount() { return ++in_flight_event_count_; } |
+ int DecrementInFlightEventCount() { return --in_flight_event_count_; } |
Charlie Reis
2012/04/06 22:34:14
These are small enough to be inlined, so we should
nasko
2012/04/10 00:16:37
Done.
|
+ |
// 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 |