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

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

Issue 2921063003: Fix process reuse for dedicated processes when over process limit. (Closed)
Patch Set: Fix IsSuitableHost for sites that require a dedicated process but don't set an origin lock Created 3 years, 6 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/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 5c1cb5cf56ccfa1ad79efb7a6e95e498fa430c40..2cd6fbebce422cdf7a6e865f09fb3486d334b289 100644
--- a/content/public/test/mock_render_process_host.h
+++ b/content/public/test/mock_render_process_host.h
@@ -128,6 +128,8 @@ class MockRenderProcessHost : public RenderProcessHost {
void SetIsNeverSuitableForReuse() override;
bool MayReuseHost() override;
+ bool IsUnused() override;
+ void SetIsUsed() override;
// IPC::Sender via RenderProcessHost.
bool Send(IPC::Message* msg) override;
@@ -173,6 +175,7 @@ class MockRenderProcessHost : public RenderProcessHost {
bool deletion_callback_called_;
bool is_for_guests_only_;
bool is_process_backgrounded_;
+ bool is_unused_;
std::unique_ptr<base::ProcessHandle> process_handle;
int worker_ref_count_;
std::unique_ptr<mojo::AssociatedInterfacePtr<mojom::Renderer>>

Powered by Google App Engine
This is Rietveld 408576698