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

Unified Diff: content/browser/shared_worker/shared_worker_service_impl.cc

Issue 2312633002: For debugging, split worker ref count into service worker and shared worker counts (Closed)
Patch Set: size_t 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/browser/shared_worker/shared_worker_service_impl.cc
diff --git a/content/browser/shared_worker/shared_worker_service_impl.cc b/content/browser/shared_worker/shared_worker_service_impl.cc
index ae83f4602e6590674a3398921a43ff9fe1461397..3b63787d2df4a152bdf83f26a34892030dabadea 100644
--- a/content/browser/shared_worker/shared_worker_service_impl.cc
+++ b/content/browser/shared_worker/shared_worker_service_impl.cc
@@ -59,14 +59,14 @@ void UpdateWorkerDependencyOnUI(const std::vector<int>& added_ids,
static_cast<RenderProcessHostImpl*>(RenderProcessHost::FromID(id));
if (!render_process_host_impl)
continue;
- render_process_host_impl->IncrementWorkerRefCount();
+ render_process_host_impl->IncrementSharedWorkerRefCount();
}
for (int id : removed_ids) {
RenderProcessHostImpl* render_process_host_impl =
static_cast<RenderProcessHostImpl*>(RenderProcessHost::FromID(id));
if (!render_process_host_impl)
continue;
- render_process_host_impl->DecrementWorkerRefCount();
+ render_process_host_impl->DecrementSharedWorkerRefCount();
}
}
@@ -89,7 +89,7 @@ void DecrementWorkerRefCount(int process_id) {
static_cast<RenderProcessHostImpl*>(
RenderProcessHost::FromID(process_id));
if (render_process_host_impl)
- render_process_host_impl->DecrementWorkerRefCount();
+ render_process_host_impl->DecrementSharedWorkerRefCount();
}
bool TryIncrementWorkerRefCount(int worker_process_id) {
@@ -97,7 +97,7 @@ bool TryIncrementWorkerRefCount(int worker_process_id) {
RenderProcessHost::FromID(worker_process_id));
if (!render_process || render_process->FastShutdownStarted())
return false;
- render_process->IncrementWorkerRefCount();
+ render_process->IncrementSharedWorkerRefCount();
return true;
}
« no previous file with comments | « content/browser/service_worker/service_worker_process_manager.cc ('k') | content/browser/site_per_process_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698