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

Issue 378743002: Navigation transitions: Place transition page in same process as destination page. (Closed)

Created:
6 years, 5 months ago by shatch
Modified:
6 years, 4 months ago
CC:
chromium-reviews, darin-cc_chromium.org, nasko+codewatch_chromium.org, jam, creis+watch_chromium.org, miu+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Navigation transitions: Place transition page in same process as destination page. Per creis' request, place the transition page in the same process as the destination page. This is done to avoid the overhead of potentially spawning an extra new renderer for the transition. The idea behind this was to put the transition page into the same render process as the incoming page. Approach so far was to instantiate a new WebContents in the embedder via a new function createNativeWebContentsWithSharedSiteInstance(source_content_view_core), passing the SiteInstance of the incoming page. The transition ContentViewCore can then be navigated to a blank page and the serialized markup is added to the page. Since the transition and incoming pages share the same SiteInstance, they will be placed in the same process. Design doc: https://docs.google.com/a/chromium.org/document/d/17jg1RRL3RI969cLwbKBIcoGDsPwqaEdBxafGNYGwiY4/edit# Implementation details: https://docs.google.com/a/chromium.org/document/d/1kREPtFJaeLoDKwrfmrYTD7DHCdxX1RzFBga2gNY8lyE/edit#heading=h.bng2kpmyvxq5 BUG=370696 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=287192

Patch Set 1 : #

Total comments: 4

Patch Set 2 : Changes from review. #

Patch Set 3 : Share SiteInstance with new ContentViewCore. #

Patch Set 4 : Added tests + refactor. #

Total comments: 6

Patch Set 5 : Changes from review. #

Patch Set 6 : Ran git cl format. #

Total comments: 4

Patch Set 7 : Changes from review. #

Patch Set 8 : Fix clang build. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+96 lines, -12 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/ContentViewUtil.java View 1 2 3 chunks +13 lines, -0 lines 0 comments Download
M chrome/browser/android/content_view_util.cc View 1 2 3 4 5 6 2 chunks +19 lines, -0 lines 0 comments Download
M content/browser/site_instance_impl.cc View 1 2 3 4 5 6 2 chunks +17 lines, -9 lines 0 comments Download
M content/browser/site_instance_impl_unittest.cc View 1 2 3 4 5 6 7 2 chunks +11 lines, -0 lines 0 comments Download
M content/browser/transition_browsertest.cc View 1 2 3 4 5 6 7 3 chunks +32 lines, -2 lines 0 comments Download
M content/public/browser/site_instance.h View 1 2 3 4 5 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 28 (0 generated)
shatch
Do you mind taking a look at this since you 2 reviewed the changes to ...
6 years, 5 months ago (2014-07-08 21:10:36 UTC) #1
jam
I looked through this and didn't see any issues popping up, although Nasko is more ...
6 years, 5 months ago (2014-07-14 23:14:21 UTC) #2
shatch
Thanks for taking a look, I've updated the cl description as requested. Also added creis ...
6 years, 5 months ago (2014-07-21 17:47:11 UTC) #3
Charlie Reis
On 2014/07/21 17:47:11, shatch wrote: > Thanks for taking a look, I've updated the cl ...
6 years, 5 months ago (2014-07-22 21:14:17 UTC) #4
Charlie Reis
Thanks for looking to into the process sharing! Your implementation doc was especially helpful. As ...
6 years, 5 months ago (2014-07-23 17:32:48 UTC) #5
shatch
On 2014/07/23 17:32:48, Charlie Reis wrote: > Thanks for looking to into the process sharing! ...
6 years, 5 months ago (2014-07-23 19:07:06 UTC) #6
Charlie Reis
On 2014/07/23 19:07:06, shatch wrote: > On 2014/07/23 17:32:48, Charlie Reis wrote: > > Thanks ...
6 years, 5 months ago (2014-07-23 22:02:28 UTC) #7
shatch
On 2014/07/23 22:02:28, Charlie Reis wrote: > On 2014/07/23 19:07:06, shatch wrote: > > On ...
6 years, 5 months ago (2014-07-23 22:12:14 UTC) #8
shatch
On 2014/07/23 22:12:14, shatch wrote: > On 2014/07/23 22:02:28, Charlie Reis wrote: > > On ...
6 years, 5 months ago (2014-07-24 18:39:11 UTC) #9
Charlie Reis
On 2014/07/24 18:39:11, shatch wrote: > On 2014/07/23 22:12:14, shatch wrote: > > On 2014/07/23 ...
6 years, 5 months ago (2014-07-24 19:59:25 UTC) #10
shatch
On 2014/07/24 19:59:25, Charlie Reis wrote: > On 2014/07/24 18:39:11, shatch wrote: > > On ...
6 years, 5 months ago (2014-07-24 22:34:39 UTC) #11
Charlie Reis
Cool. One issue to update below. One question before you make that change, though-- do ...
6 years, 5 months ago (2014-07-25 17:31:22 UTC) #12
shatch
On 2014/07/25 17:31:22, Charlie Reis wrote: > Cool. One issue to update below. > > ...
6 years, 5 months ago (2014-07-25 18:42:01 UTC) #13
Charlie Reis
On 2014/07/25 18:42:01, shatch wrote: > On 2014/07/25 17:31:22, Charlie Reis wrote: > > Cool. ...
6 years, 5 months ago (2014-07-25 18:45:13 UTC) #14
shatch
New snapshot uploaded, ptal https://codereview.chromium.org/378743002/diff/200001/content/browser/site_instance_impl.cc File content/browser/site_instance_impl.cc (right): https://codereview.chromium.org/378743002/diff/200001/content/browser/site_instance_impl.cc#newcode264 content/browser/site_instance_impl.cc:264: // If either url is ...
6 years, 5 months ago (2014-07-25 20:57:06 UTC) #15
Charlie Reis
Thanks, LGTM
6 years, 5 months ago (2014-07-25 21:03:37 UTC) #16
shatch
Hi David, looking for an owner for: chrome/android/ chrome/browser/android/ ptal
6 years, 5 months ago (2014-07-25 21:09:05 UTC) #17
shatch
On 2014/07/25 21:09:05, shatch wrote: > Hi David, looking for an owner for: > > ...
6 years, 4 months ago (2014-07-30 14:25:34 UTC) #18
David Trainor- moved to gerrit
nits but lgtm. https://codereview.chromium.org/378743002/diff/240001/chrome/browser/android/content_view_util.cc File chrome/browser/android/content_view_util.cc (right): https://codereview.chromium.org/378743002/diff/240001/chrome/browser/android/content_view_util.cc#newcode30 chrome/browser/android/content_view_util.cc:30: Profile* profile = g_browser_process->profile_manager()->GetLastUsedProfile(); Not sure, ...
6 years, 4 months ago (2014-07-31 00:48:48 UTC) #19
shatch
https://codereview.chromium.org/378743002/diff/240001/chrome/browser/android/content_view_util.cc File chrome/browser/android/content_view_util.cc (right): https://codereview.chromium.org/378743002/diff/240001/chrome/browser/android/content_view_util.cc#newcode30 chrome/browser/android/content_view_util.cc:30: Profile* profile = g_browser_process->profile_manager()->GetLastUsedProfile(); On 2014/07/31 00:48:47, David Trainor ...
6 years, 4 months ago (2014-07-31 18:41:34 UTC) #20
shatch
The CQ bit was checked by simonhatch@chromium.org
6 years, 4 months ago (2014-07-31 22:34:07 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/simonhatch@chromium.org/378743002/260001
6 years, 4 months ago (2014-07-31 22:37:08 UTC) #22
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_gpu on tryserver.chromium.gpu ...
6 years, 4 months ago (2014-08-01 03:12:27 UTC) #23
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-01 03:20:15 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_clang_dbg/builds/1994) linux_chromium_rel_swarming on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_swarming/builds/2081) mac_chromium_compile_dbg ...
6 years, 4 months ago (2014-08-01 03:20:16 UTC) #25
shatch
The CQ bit was checked by simonhatch@chromium.org
6 years, 4 months ago (2014-08-02 02:18:10 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/simonhatch@chromium.org/378743002/280001
6 years, 4 months ago (2014-08-02 02:20:38 UTC) #27
commit-bot: I haz the power
6 years, 4 months ago (2014-08-02 11:18:24 UTC) #28
Message was sent while issue was closed.
Change committed as 287192

Powered by Google App Engine
This is Rietveld 408576698