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

Unified Diff: content/browser/web_contents/web_contents_impl.cc

Issue 701953006: PlzNavigate: Speculatively spawns a renderer process for navigations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: When navigating checks if the current WebUI can be reused. Created 6 years, 1 month 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/web_contents/web_contents_impl.cc
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
index 5ec31a02c05612ac3f3807e8b0e0ed9d560352f4..45094d11e12285573df083b67b2294319c8b0990 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -3906,8 +3906,8 @@ WebPreferences WebContentsImpl::ComputeWebkitPrefs() {
int WebContentsImpl::CreateSwappedOutRenderView(
SiteInstance* instance) {
- return GetRenderManager()->CreateRenderFrame(
- instance, MSG_ROUTING_NONE, true, true, true);
+ return GetRenderManager()->CreateSwappedOutHiddenRenderFrame(
nasko 2014/11/19 01:00:24 Please rebase on top of crrev.com/304494.
carlosk 2014/11/19 17:24:29 Already done locally.
carlosk 2014/11/21 14:36:34 Done.
+ instance, MSG_ROUTING_NONE, true);
}
void WebContentsImpl::OnUserGesture() {
@@ -4079,8 +4079,8 @@ int WebContentsImpl::CreateOpenerRenderViews(SiteInstance* instance) {
// Create a swapped out RenderView in the given SiteInstance if none exists,
// setting its opener to the given route_id. Return the new view's route_id.
- return GetRenderManager()->CreateRenderFrame(
- instance, opener_route_id, true, true, true);
+ return GetRenderManager()->CreateSwappedOutHiddenRenderFrame(
+ instance, opener_route_id, true);
}
NavigationControllerImpl& WebContentsImpl::GetControllerForRenderManager() {
« content/browser/site_instance_impl.cc ('K') | « content/browser/site_instance_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698