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_; |