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

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

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.h
diff --git a/content/public/test/mock_render_process_host.h b/content/public/test/mock_render_process_host.h
index 3cff5d95e2f6c42dbb77e9117868f2ce88edd244..e246dc7d7755276ba68bc1efe6a402b6bc782606 100644
--- a/content/public/test/mock_render_process_host.h
+++ b/content/public/test/mock_render_process_host.h
@@ -101,6 +101,7 @@ class MockRenderProcessHost : public RenderProcessHost {
override;
const base::TimeTicks& GetInitTimeForNavigationMetrics() const override;
bool IsProcessBackgrounded() const override;
+ size_t GetWorkerRefCount() const override;
void IncrementServiceWorkerRefCount() override;
void DecrementServiceWorkerRefCount() override;
void IncrementSharedWorkerRefCount() override;
@@ -139,8 +140,6 @@ class MockRenderProcessHost : public RenderProcessHost {
void GetAudioOutputControllers(
const GetAudioOutputControllersCallback& callback) const override {}
- int worker_ref_count() const { return worker_ref_count_; }
-
void SetRemoteInterfaces(
std::unique_ptr<service_manager::InterfaceProvider> remote_interfaces) {
remote_interfaces_ = std::move(remote_interfaces);

Powered by Google App Engine
This is Rietveld 408576698