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

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

Issue 10008015: Fixing a problem, where a hung renderer process is not killed when navigating away (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed problems when navigating to page that doesn't involve network IO. Created 8 years, 8 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
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

Powered by Google App Engine
This is Rietveld 408576698