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

Issue 483773002: PlzNavigate: implement CommitNavigation on the browser side (Closed)

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

Description

PlzNavigate: implement CommitNavigation on the browser side Part of the PlzNavigate navigation refactoring project. This CL implements CommitNavigation on the browser side, so that the proper parameters can be passed to the renderer when navigations are ready to commit. BUG=376091 Committed: https://crrev.com/9bfeef40d0a1597a6cbf5835f0bc2c2553818975 Cr-Commit-Position: refs/heads/master@{#297495}

Patch Set 1 : #

Patch Set 2 : Added a unit test for the reload case #

Total comments: 33

Patch Set 3 : Addressed Nasko's comments #

Total comments: 2

Patch Set 4 : Added a class to keep track of navigation parameters #

Total comments: 19

Patch Set 5 : Split the class into structs used by IPCs #

Total comments: 21

Patch Set 6 : Using non-inherited structs #

Total comments: 49

Patch Set 7 : NavigationRequest has ownership of NavigationParams #

Total comments: 19

Patch Set 8 : Rebase #

Patch Set 9 : Addressed Nasko's comments #

Total comments: 15

Patch Set 10 : Renamed CoreNavigationParams to CommonNavigationParams #

Patch Set 11 : Fixed compilation error #

Total comments: 2

Patch Set 12 : Rebase + fix comment #

Patch Set 13 : Rebase + fix compilation error #

Unified diffs Side-by-side diffs Delta from patch set Stats (+782 lines, -380 lines) Patch
M content/browser/frame_host/navigation_controller_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/frame_host/navigation_request.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +28 lines, -11 lines 0 comments Download
M content/browser/frame_host/navigation_request.cc View 1 2 3 4 5 6 7 8 9 3 chunks +20 lines, -8 lines 0 comments Download
M content/browser/frame_host/navigation_request_info.h View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/frame_host/navigator.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +5 lines, -2 lines 0 comments Download
M content/browser/frame_host/navigator_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +8 lines, -9 lines 0 comments Download
M content/browser/frame_host/navigator_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 8 chunks +71 lines, -66 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +11 lines, -2 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +26 lines, -10 lines 0 comments Download
M content/browser/frame_host/render_frame_host_manager.h View 1 2 3 4 5 6 7 8 9 2 chunks +8 lines, -4 lines 0 comments Download
M content/browser/frame_host/render_frame_host_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +73 lines, -41 lines 0 comments Download
M content/browser/frame_host/render_frame_host_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 10 chunks +105 lines, -15 lines 0 comments Download
M content/browser/loader/resource_dispatcher_host_impl.h View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -1 line 0 comments Download
M content/browser/loader/resource_dispatcher_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -0 lines 0 comments Download
M content/common/frame_messages.h View 1 2 3 4 5 6 7 8 9 9 chunks +45 lines, -52 lines 0 comments Download
A content/common/navigation_params.h View 1 2 3 4 5 6 7 8 9 1 chunk +104 lines, -0 lines 0 comments Download
A content/common/navigation_params.cc View 1 2 3 4 5 6 7 8 9 1 chunk +61 lines, -0 lines 0 comments Download
M content/content_common.gypi View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M content/public/test/render_view_test.cc View 1 2 3 4 5 6 7 8 9 2 chunks +6 lines, -5 lines 0 comments Download
M content/renderer/accessibility/renderer_accessibility_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +5 lines, -4 lines 0 comments Download
M content/renderer/render_frame_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +8 lines, -0 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 10 chunks +62 lines, -43 lines 0 comments Download
M content/renderer/render_view_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 18 chunks +95 lines, -75 lines 0 comments Download
M content/renderer/render_view_impl.h View 1 2 3 4 5 6 7 2 chunks +3 lines, -1 line 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 6 7 8 9 5 chunks +18 lines, -18 lines 0 comments Download
M content/test/test_render_frame_host.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +9 lines, -10 lines 0 comments Download

Messages

Total messages: 47 (10 generated)
clamy
Patchset #1 (id:1) has been deleted
6 years, 3 months ago (2014-08-26 15:44:54 UTC) #1
clamy
Patchset #1 (id:20001) has been deleted
6 years, 3 months ago (2014-08-26 15:45:02 UTC) #2
clamy
Patchset #1 (id:40001) has been deleted
6 years, 3 months ago (2014-08-26 16:02:50 UTC) #3
clamy
clamy@chromium.org changed reviewers: + carlosk@chromium.org, nasko@chromium.org
6 years, 3 months ago (2014-08-26 16:10:12 UTC) #4
clamy
@nasko: PTAL @carlosk: FYI This CL extends the RenderFrameHostManager::CommitNavigation method introduce in the previous CL ...
6 years, 3 months ago (2014-08-26 16:18:37 UTC) #5
(Do not use) nasko
nasko@google.com changed reviewers: + nasko@google.com
6 years, 3 months ago (2014-08-28 16:39:09 UTC) #6
(Do not use) nasko
I like how things are coming along step by step! Lots of comments on this ...
6 years, 3 months ago (2014-08-28 16:39:09 UTC) #7
clamy
Thanks! The problem with the commit parameters is that they depend on parameters that are ...
6 years, 3 months ago (2014-09-02 18:25:20 UTC) #8
nasko
Thanks for the round of cleanup. I saw a few comments in render_frame_host_manager_unittest.cc that had ...
6 years, 3 months ago (2014-09-03 16:30:27 UTC) #9
clamy
Thanks. Yes some of the comments you made did not appear when I looked at ...
6 years, 3 months ago (2014-09-03 17:15:15 UTC) #10
clamy
+davidben: FYI - this changes a bit the struct passed to the IO thread. @nasko: ...
6 years, 3 months ago (2014-09-03 22:23:44 UTC) #12
(Do not use) nasko
https://chromiumcodereview.appspot.com/483773002/diff/110001/content/browser/frame_host/navigation_controller_impl.cc File content/browser/frame_host/navigation_controller_impl.cc (right): https://chromiumcodereview.appspot.com/483773002/diff/110001/content/browser/frame_host/navigation_controller_impl.cc#newcode1738 content/browser/frame_host/navigation_controller_impl.cc:1738: void NavigationControllerImpl::FillHistoryParametersForNavigationEntry( nit: This seems to be filling params ...
6 years, 3 months ago (2014-09-05 17:04:49 UTC) #13
clamy
https://chromiumcodereview.appspot.com/483773002/diff/110001/content/browser/frame_host/navigation_parameters.h File content/browser/frame_host/navigation_parameters.h (right): https://chromiumcodereview.appspot.com/483773002/diff/110001/content/browser/frame_host/navigation_parameters.h#newcode106 content/browser/frame_host/navigation_parameters.h:106: base::TimeTicks browser_navigation_start_; On 2014/09/05 17:04:48, (Do not use) nasko ...
6 years, 3 months ago (2014-09-05 18:21:25 UTC) #14
nasko
On 2014/09/05 18:21:25, clamy wrote: > https://chromiumcodereview.appspot.com/483773002/diff/110001/content/browser/frame_host/navigation_parameters.h > File content/browser/frame_host/navigation_parameters.h (right): > > https://chromiumcodereview.appspot.com/483773002/diff/110001/content/browser/frame_host/navigation_parameters.h#newcode106 > ...
6 years, 3 months ago (2014-09-05 18:36:40 UTC) #15
clamy
Here is the version with structs+inheritance. PTAL https://chromiumcodereview.appspot.com/483773002/diff/110001/content/browser/frame_host/navigation_controller_impl.cc File content/browser/frame_host/navigation_controller_impl.cc (right): https://chromiumcodereview.appspot.com/483773002/diff/110001/content/browser/frame_host/navigation_controller_impl.cc#newcode1738 content/browser/frame_host/navigation_controller_impl.cc:1738: void NavigationControllerImpl::FillHistoryParametersForNavigationEntry( ...
6 years, 3 months ago (2014-09-08 18:37:12 UTC) #17
clamy
@creis: PTAL.
6 years, 3 months ago (2014-09-15 17:45:46 UTC) #19
Charlie Reis
I have some meta-level comments. I'll note that I have some of the context from ...
6 years, 3 months ago (2014-09-15 21:19:40 UTC) #20
clamy
The main goal of the structs are to make sure that we avoid having duplicated ...
6 years, 3 months ago (2014-09-15 21:35:18 UTC) #21
clamy
@creis, nasko: PTAL I have changed the CL to use three separate structs for navigation ...
6 years, 3 months ago (2014-09-18 20:50:39 UTC) #23
Charlie Reis
Thanks! I think this will be useful to clearly see which groups of navigation params ...
6 years, 3 months ago (2014-09-19 23:12:32 UTC) #24
nasko
Some comments as I'm swapping back this CL in short term memory : ). https://codereview.chromium.org/483773002/diff/190001/content/browser/frame_host/render_frame_host_impl.cc ...
6 years, 3 months ago (2014-09-22 23:13:04 UTC) #26
clamy
Thanks! @creis: eventually we want to remove the FrameMsg_Navigate when we have completely switched to ...
6 years, 3 months ago (2014-09-23 21:13:27 UTC) #27
nasko
I really like the new structure where NavigationRequest owns all the parameters and RFHM only ...
6 years, 3 months ago (2014-09-24 22:42:15 UTC) #28
clamy
Thanks! https://chromiumcodereview.appspot.com/483773002/diff/210001/content/browser/frame_host/render_frame_host_manager.cc File content/browser/frame_host/render_frame_host_manager.cc (right): https://chromiumcodereview.appspot.com/483773002/diff/210001/content/browser/frame_host/render_frame_host_manager.cc#newcode51 content/browser/frame_host/render_frame_host_manager.cc:51: // TODO(clamy): unify the code with what is ...
6 years, 2 months ago (2014-09-26 17:22:32 UTC) #29
nasko
This is almost ready to go, just a few more minor comments. One thing I ...
6 years, 2 months ago (2014-09-26 22:16:43 UTC) #30
clamy
Thanks! I have renamed CoreNavigationParams to CommonNavigationParams in the latest patch set. https://chromiumcodereview.appspot.com/483773002/diff/250001/content/browser/frame_host/navigation_request.cc File content/browser/frame_host/navigation_request.cc ...
6 years, 2 months ago (2014-09-29 20:45:31 UTC) #31
nasko
Seems there are some compile failures on rename of core->common. Once those are fixed and ...
6 years, 2 months ago (2014-09-29 22:12:11 UTC) #32
clamy
Thanks for the review! @creis: PTAL https://codereview.chromium.org/483773002/diff/250001/content/browser/frame_host/navigation_request.cc File content/browser/frame_host/navigation_request.cc (right): https://codereview.chromium.org/483773002/diff/250001/content/browser/frame_host/navigation_request.cc#newcode66 content/browser/frame_host/navigation_request.cc:66: *info_, On 2014/09/29 ...
6 years, 2 months ago (2014-09-29 23:12:12 UTC) #33
Charlie Reis
LGTM with one comment (mostly deferring to Nasko). Sorry about the merge conflicts-- they're likely ...
6 years, 2 months ago (2014-09-29 23:49:53 UTC) #34
clamy
Thanks! I think we all agree about moving the logic for navigation out of RFHM, ...
6 years, 2 months ago (2014-09-30 00:40:59 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/483773002/310001
6 years, 2 months ago (2014-09-30 00:42:04 UTC) #37
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg/builds/20127)
6 years, 2 months ago (2014-09-30 01:11:13 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/483773002/330001
6 years, 2 months ago (2014-09-30 18:20:47 UTC) #41
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_arm64_dbg_recipe/builds/8673) linux_chromium_gn_rel on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_rel/builds/20425)
6 years, 2 months ago (2014-09-30 18:34:35 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/483773002/330001
6 years, 2 months ago (2014-09-30 18:38:34 UTC) #45
commit-bot: I haz the power
Committed patchset #13 (id:330001) as d8f8919a68a02c86e38f2d0c6c6b1d5c5895b2f8
6 years, 2 months ago (2014-09-30 20:50:57 UTC) #46
commit-bot: I haz the power
6 years, 2 months ago (2014-09-30 20:51:38 UTC) #47
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/9bfeef40d0a1597a6cbf5835f0bc2c2553818975
Cr-Commit-Position: refs/heads/master@{#297495}

Powered by Google App Engine
This is Rietveld 408576698