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

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

Issue 1853333003: [BlobAsync] Faster shortcuttin, make renderer controller leaky & alive. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Disabling fast shutdown when transfering blobs Created 4 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_process_host_impl.h
diff --git a/content/browser/renderer_host/render_process_host_impl.h b/content/browser/renderer_host/render_process_host_impl.h
index 7580068dff19cda345e3087b6a0e029e7ebf2f96..9151da22e1fe15034507457cb33f09ff18e5413e 100644
--- a/content/browser/renderer_host/render_process_host_impl.h
+++ b/content/browser/renderer_host/render_process_host_impl.h
@@ -425,13 +425,14 @@ class CONTENT_EXPORT RenderProcessHostImpl
// The observers watching our lifetime.
base::ObserverList<RenderProcessHostObserver> observers_;
- // True if the process can be shut down suddenly. If this is true, then we're
+ // Refcount of dependencies that need sudden termination disabled. If <= 0,
+ // the process can be shut down suddenly. If this is <= 0, then we're
// sure that all the RenderViews in the process can be shutdown suddenly. If
- // it's false, then specific RenderViews might still be allowed to be shutdown
+ // it's > 0, then specific RenderViews might still be allowed to be shutdown
// suddenly by checking their SuddenTerminationAllowed() flag. This can occur
// if one WebContents has an unload event listener but another WebContents in
// the same process doesn't.
- bool sudden_termination_allowed_;
+ int sudden_termination_blocking_refcount_;
// Set to true if we shouldn't send input events. We actually do the
// filtering for this at the render widget level.

Powered by Google App Engine
This is Rietveld 408576698