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

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: 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/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..e8e2a2050bd9f211a9e9c7a0b91690fe4f252c34 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 any web content, and it has not been given to a SiteInstance that has
Charlie Reis 2017/06/17 23:13:53 nit: has not committed any web content
alexmos 2017/06/19 20:03:58 Done.
+ // a site assigned.
+ bool is_unused_;
+
// Prevents the class from being added as a GpuDataManagerImpl observer more
// than once.
bool gpu_observer_registered_;

Powered by Google App Engine
This is Rietveld 408576698