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

Unified Diff: content/browser/renderer_host/render_process_host_impl.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
Index: content/browser/renderer_host/render_process_host_impl.h
diff --git a/content/browser/renderer_host/render_process_host_impl.h b/content/browser/renderer_host/render_process_host_impl.h
index 96900941e917bf964a13293930b129bb36f9ab78..96e664d759ddfc18147963e11f0da001cd67b3e8 100644
--- a/content/browser/renderer_host/render_process_host_impl.h
+++ b/content/browser/renderer_host/render_process_host_impl.h
@@ -193,6 +193,8 @@ class CONTENT_EXPORT RenderProcessHostImpl
void SetIsNeverSuitableForReuse() override;
bool MayReuseHost() override;
+ bool IsUnused() override;
+ void SetIsUsed() override;
mojom::RouteProvider* GetRemoteRouteProvider();
@@ -620,6 +622,11 @@ class CONTENT_EXPORT RenderProcessHostImpl
// RenderFrames.
bool is_for_guests_only_;
+ // Indicates whether this RenderProcessHost is unused, meaning that it has
+ // not committed any web content, and it has not been given to a SiteInstance
+ // that has a site assigned.
+ bool is_unused_;
+
// Prevents the class from being added as a GpuDataManagerImpl observer more
// than once.
bool gpu_observer_registered_;
« no previous file with comments | « content/browser/isolated_origin_browsertest.cc ('k') | content/browser/renderer_host/render_process_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698