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

Unified Diff: content/public/browser/render_process_host.h

Issue 2929113002: Enable spare RenderProcessHost to be preinitialized. (Closed)
Patch Set: Omnibox hook 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/browser/render_process_host.h
diff --git a/content/public/browser/render_process_host.h b/content/public/browser/render_process_host.h
index 778f93da8ceffbb9c6fa48d053c098f332289d64..b8a7b55f61bd421bd9a08e65eef0d330cb55e721 100644
--- a/content/public/browser/render_process_host.h
+++ b/content/public/browser/render_process_host.h
@@ -377,6 +377,12 @@ class CONTENT_EXPORT RenderProcessHost : public IPC::Sender,
// Static management functions -----------------------------------------------
+ // Possibly start an unbound, spare RenderProcessHost. A subsequent call to
+ // CreateRenderProcessHost with a matching browser_context may use this
+ // preinitialized RenderProcessHost, improving performance.
Charlie Reis 2017/06/25 23:48:28 Please elaborate (as mentioned in the comment in r
mattcary 2017/06/26 14:45:07 Done.
+ static void WarmupSpareRenderProcessHost(
+ content::BrowserContext* browser_context);
+
// Flag to run the renderer in process. This is primarily
// for debugging purposes. When running "in process", the
// browser maintains a single RenderProcessHost which communicates

Powered by Google App Engine
This is Rietveld 408576698