Enable spare RenderProcessHost to be preinitialized

Desktop / Chromium - mattcary [chromium.org] - 13 July 2017 10:26 EDT

Enables a preinitialization of an unbound RenderProcessHost, and refactors RenderProcessHost creation to allow that to be used where appropriate.

BUG=730587 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation

Review-Url: https://codereview.chromium.org/2929113002 Cr-Commit-Position: refs/heads/master@{#486372}

28c8676 Enable spare RenderProcessHost to be preinitialized.
.../chromium/chrome/browser/ChromeFeatureList.java | 1 +
.../org/chromium/chrome/browser/WarmupManager.java | 22 ++
.../browser/omnibox/AutocompleteController.java | 8 +
chrome/browser/about_flags.cc | 6 +
chrome/browser/android/chrome_feature_list.cc | 4 +
chrome/browser/android/chrome_feature_list.h | 1 +
chrome/browser/android/warmup_manager.cc | 9 +
chrome/browser/flag_descriptions.cc | 6 +
chrome/browser/flag_descriptions.h | 3 +
content/browser/browser_context.cc | 4 +-
.../frame_host/render_frame_host_manager.cc | 6 +
.../render_process_host_browsertest.cc | 172 ++++++++++++++
.../renderer_host/render_process_host_impl.cc | 262 +++++++++++++++++++--
.../renderer_host/render_process_host_impl.h | 44 +++-
.../renderer_host/render_process_host_unittest.cc | 44 ++++
content/public/browser/render_process_host.h | 25 ++
content/public/test/mock_render_process_host.cc | 4 +
content/public/test/mock_render_process_host.h | 7 +
tools/metrics/histograms/enums.xml | 24 +-
19 files changed, 615 insertions(+), 37 deletions(-)

Upstream: git.chromium.org


  • Share