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

Unified Diff: content/public/browser/render_process_host.h

Issue 2248583003: Force release the worker ref count to release the process in BrowserContext::NotifyWillBeDestroyed() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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/public/browser/render_process_host.h
diff --git a/content/public/browser/render_process_host.h b/content/public/browser/render_process_host.h
index de2843d4f796f29416cb0b0fa51a550588773de1..cccbc8b153c997fd15e496c3f1578df7dea1f721 100644
--- a/content/public/browser/render_process_host.h
+++ b/content/public/browser/render_process_host.h
@@ -306,6 +306,10 @@ class CONTENT_EXPORT RenderProcessHost : public IPC::Sender,
virtual void IncrementWorkerRefCount() = 0;
virtual void DecrementWorkerRefCount() = 0;
+ // Called when the browser context will be destroyed to release the process
+ // which have been kept alive for shared workers.
+ virtual void ForceReleaseWorkerRefCount() = 0;
+
// Purges and suspends the renderer process.
virtual void PurgeAndSuspend() = 0;

Powered by Google App Engine
This is Rietveld 408576698