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

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

Issue 2342523002: Forcibly clear worker ref counts on shutdown. (Closed)
Patch Set: rebase Created 4 years, 3 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 c5bf60f82d3bb0d061600f5a1c938cba3e5d0d47..8f7e45e4fe9b986f01a64fb898a7d541aa76b260 100644
--- a/content/public/browser/render_process_host.h
+++ b/content/public/browser/render_process_host.h
@@ -304,6 +304,16 @@ class CONTENT_EXPORT RenderProcessHost : public IPC::Sender,
virtual void IncrementSharedWorkerRefCount() = 0;
virtual void DecrementSharedWorkerRefCount() = 0;
+ // Sets worker ref counts to zero. Called when the browser context will be
+ // destroyed so this RenderProcessHost can immediately die.
+ //
+ // After this is called, the Increment/DecrementWorkerRefCount functions must
+ // not be called.
+ virtual void ForceReleaseWorkerRefCounts() = 0;
+
+ // Returns true if ForceReleaseWorkerRefCounts was called.
+ virtual bool IsWorkerRefCountDisabled() = 0;
+
// Purges and suspends the renderer process.
virtual void PurgeAndSuspend() = 0;
« no previous file with comments | « content/browser/shared_worker/shared_worker_service_impl.cc ('k') | content/public/test/mock_render_process_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698