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

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: Rebase 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
« no previous file with comments | « content/public/browser/render_process_host.h ('k') | content/public/test/mock_render_process_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2662ca250b3ecc0b33c1ebdc3fc86267da4d004b..f2802c98ae8a82fe397718d1a01f4a5343bbd45e 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>>
« no previous file with comments | « content/public/browser/render_process_host.h ('k') | content/public/test/mock_render_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698