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

Issue 1496483002: OOPIF: Support session restore by combining/splitting frame PageStates. (Closed)

Created:
5 years ago by Charlie Reis
Modified:
5 years ago
Reviewers:
Avi (use Gerrit)
CC:
chromium-reviews, darin-cc_chromium.org, nasko+codewatch_chromium.org, jam, creis+watch_chromium.org, site-isolation-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

OOPIF: Support session restore by combining/splitting frame PageStates. In OOPIF-enabled modes, each FrameNavigationEntry has a per-frame PageState object. The states for each frame in the tree need to be combined into a single PageState for GetPageState, and a single PageState needs to be split into individual FrameNavigationEntries for SetPageState. Because GetPageState is const and returns a const ref, we need to cache the combined PageState each time it could change. BUG=545219 TEST=Close and restore a tab or session with OOPIFs. Committed: https://crrev.com/7115a704adb9c7109f61d34d6b50937dd8c60bc6 Cr-Commit-Position: refs/heads/master@{#363025}

Patch Set 1 #

Patch Set 2 : Fix some tests #

Total comments: 6

Patch Set 3 : Remove const ref #

Patch Set 4 : Add test #

Patch Set 5 : Fix remaining tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+242 lines, -20 lines) Patch
M content/browser/frame_host/navigation_controller_impl.cc View 1 2 1 chunk +4 lines, -3 lines 0 comments Download
M content/browser/frame_host/navigation_controller_impl_browsertest.cc View 1 2 3 2 chunks +139 lines, -1 line 0 comments Download
M content/browser/frame_host/navigation_entry_impl.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/browser/frame_host/navigation_entry_impl.cc View 1 2 3 4 2 chunks +97 lines, -14 lines 0 comments Download
M content/public/browser/navigation_entry.h View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 19 (7 generated)
Charlie Reis
Avi, can I have you start to take a look? There are still 3 session ...
5 years ago (2015-12-02 18:14:18 UTC) #2
Avi (use Gerrit)
I'm almost sold, but I'd much rather change the API than work around it. https://codereview.chromium.org/1496483002/diff/20001/content/browser/frame_host/navigation_entry_impl.cc ...
5 years ago (2015-12-02 19:17:43 UTC) #3
Charlie Reis
https://codereview.chromium.org/1496483002/diff/20001/content/browser/frame_host/navigation_entry_impl.h File content/browser/frame_host/navigation_entry_impl.h (right): https://codereview.chromium.org/1496483002/diff/20001/content/browser/frame_host/navigation_entry_impl.h#newcode206 content/browser/frame_host/navigation_entry_impl.h:206: // be able to return a const ref from ...
5 years ago (2015-12-02 19:48:18 UTC) #4
Charlie Reis
Ah, that is nicer-- thanks! I'll try to get the remaining tests fixed/added this afternoon. ...
5 years ago (2015-12-02 20:44:14 UTC) #7
Avi (use Gerrit)
lgtm So much nicer. https://codereview.chromium.org/1496483002/diff/20001/content/browser/frame_host/navigation_entry_impl.h File content/browser/frame_host/navigation_entry_impl.h (right): https://codereview.chromium.org/1496483002/diff/20001/content/browser/frame_host/navigation_entry_impl.h#newcode206 content/browser/frame_host/navigation_entry_impl.h:206: // be able to return ...
5 years ago (2015-12-02 21:15:45 UTC) #8
Charlie Reis
Avi, can you review the diff between patch sets 3 and 5? I added a ...
5 years ago (2015-12-03 06:38:25 UTC) #11
Avi (use Gerrit)
On 2015/12/03 06:38:25, Charlie Reis wrote: > Avi, can you review the diff between patch ...
5 years ago (2015-12-03 16:08:40 UTC) #12
Charlie Reis
On 2015/12/03 16:08:40, Avi wrote: > On 2015/12/03 06:38:25, Charlie Reis wrote: > > Avi, ...
5 years ago (2015-12-03 17:05:13 UTC) #13
Avi (use Gerrit)
On 2015/12/03 17:05:13, Charlie Reis wrote: > On 2015/12/03 16:08:40, Avi wrote: > > On ...
5 years ago (2015-12-03 18:46:00 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1496483002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1496483002/160001
5 years ago (2015-12-03 18:50:27 UTC) #16
commit-bot: I haz the power
Committed patchset #5 (id:160001)
5 years ago (2015-12-03 18:56:04 UTC) #17
commit-bot: I haz the power
5 years ago (2015-12-03 18:57:12 UTC) #19
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/7115a704adb9c7109f61d34d6b50937dd8c60bc6
Cr-Commit-Position: refs/heads/master@{#363025}

Powered by Google App Engine
This is Rietveld 408576698