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

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: Cleanup 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 8d5033e333f299c546c66977edd19e5b2a70dbe3..e49cdfca91a815dd1e7c3cad653457fe4f08d8ba 100644
--- a/content/browser/renderer_host/render_process_host_impl.h
+++ b/content/browser/renderer_host/render_process_host_impl.h
@@ -187,6 +187,8 @@ class CONTENT_EXPORT RenderProcessHostImpl
mojom::Renderer* GetRendererInterface() override;
void SetIsNeverSuitableForReuse() override;
bool MayReuseHost() override;
+ bool CanBecomeDedicatedProcess() override;
+ void UnsetCanBecomeDedicatedProcess() override;
mojom::RouteProvider* GetRemoteRouteProvider();
@@ -608,6 +610,10 @@ class CONTENT_EXPORT RenderProcessHostImpl
// RenderFrames.
bool is_for_guests_only_;
+ // Indicates whether this RenderProcessHost can host any site that requires a
+ // dedicated process.
+ bool can_become_dedicated_process_;
+
// 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