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

Unified Diff: content/public/test/mock_render_process_host.cc

Issue 2569963002: MemoryCoordinator checks if ServiceWorker exists on the suspending process (Closed)
Patch Set: Created 4 years 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/test/mock_render_process_host.cc
diff --git a/content/public/test/mock_render_process_host.cc b/content/public/test/mock_render_process_host.cc
index 2888e8de26806872a839f8199827907f8a82b6e7..1d87a48ad2aaad174b1c5963fa088021616a0839 100644
--- a/content/public/test/mock_render_process_host.cc
+++ b/content/public/test/mock_render_process_host.cc
@@ -275,6 +275,10 @@ bool MockRenderProcessHost::IsProcessBackgrounded() const {
return is_process_backgrounded_;
}
+size_t MockRenderProcessHost::GetWorkerRefCount() const {
+ return worker_ref_count_;
+}
+
void MockRenderProcessHost::IncrementServiceWorkerRefCount() {
++worker_ref_count_;
}

Powered by Google App Engine
This is Rietveld 408576698