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

Unified Diff: content/browser/renderer_host/render_process_host_impl.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/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 340f39e91b3a3d531084389fad71e175faea4e3f..a04303e0885d7942b3a9723c7fdbd756a5bd236a 100644
--- a/content/browser/renderer_host/render_process_host_impl.h
+++ b/content/browser/renderer_host/render_process_host_impl.h
@@ -172,6 +172,7 @@ class CONTENT_EXPORT RenderProcessHostImpl
bool IsProcessBackgrounded() const override;
void IncrementWorkerRefCount() override;
void DecrementWorkerRefCount() override;
+ void ForceReleaseWorkerRefCount() override;
void PurgeAndSuspend() override;
// IPC::Sender via RenderProcessHost.
@@ -511,6 +512,10 @@ class CONTENT_EXPORT RenderProcessHostImpl
// for UMA.
int max_worker_count_;
+ // Set in ForceReleaseWorkerRefCount to ensure that IncrementWorkerRefCount
+ // and DecrementWorkerRefCount will not be called.
+ bool worker_ref_count_disabled_;
+
// Context shared for each mojom::PermissionService instance created for this
// RPH.
std::unique_ptr<PermissionServiceContext> permission_service_context_;

Powered by Google App Engine
This is Rietveld 408576698