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

Issue 971653004: Remove the FrameMsg_Navigate_Params (Closed)

Created:
5 years, 9 months ago by clamy
Modified:
5 years, 9 months ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, creis+watch_chromium.org, nasko+codewatch_chromium.org, jam, darin-cc_chromium.org, mkwst+moarreviews-renderer_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@history-params
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove the FrameMsg_Navigate_Params This CL removes the FrameMsg_Navigate_Params in favor of using the various *NavigationParams struct. This allows a better unification of the current navigation logic and the one being developped for browser-side navigation (aka PlzNavigate). In particular, the pending navigation parameters in RenderViewImpl are now composed of *NavigationParams struct which will allow to properly set them in PlzNavigate. It should also allow us to have the NavigationState be created from the NavigationParams. This is needed for calling the logic of RenderFrameImpl::didCommitProvisionalLoad without a data source in PlzNavigate. BUG=459033 Committed: https://crrev.com/34e1278e145473eeecf118e63f3530dfd3620f57 Cr-Commit-Position: refs/heads/master@{#320263}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Total comments: 18

Patch Set 7 : Rebase #

Patch Set 8 : Addressed Nasko's comments #

Total comments: 10
Unified diffs Side-by-side diffs Delta from patch set Stats (+602 lines, -509 lines) Patch
M content/browser/frame_host/navigation_controller_impl_unittest.cc View 1 2 3 4 1 chunk +3 lines, -2 lines 0 comments Download
M content/browser/frame_host/navigation_entry_impl.h View 1 2 3 4 5 6 7 3 chunks +14 lines, -0 lines 2 comments Download
M content/browser/frame_host/navigation_entry_impl.cc View 1 2 3 4 5 6 7 2 chunks +68 lines, -0 lines 1 comment Download
M content/browser/frame_host/navigation_request.h View 2 chunks +2 lines, -1 line 1 comment Download
M content/browser/frame_host/navigation_request.cc View 1 2 3 4 5 6 7 4 chunks +7 lines, -20 lines 1 comment Download
M content/browser/frame_host/navigator_impl.cc View 1 2 3 4 5 6 7 3 chunks +16 lines, -89 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.h View 1 2 3 4 5 6 7 5 chunks +12 lines, -13 lines 2 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 3 4 5 6 7 5 chunks +27 lines, -22 lines 0 comments Download
M content/browser/frame_host/render_frame_host_manager_unittest.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M content/common/frame_messages.h View 1 2 3 4 5 6 4 chunks +18 lines, -49 lines 0 comments Download
M content/common/navigation_params.h View 1 2 3 4 5 6 7 4 chunks +68 lines, -4 lines 2 comments Download
M content/common/navigation_params.cc View 1 2 3 4 5 6 7 3 chunks +56 lines, -5 lines 0 comments Download
M content/public/test/render_view_test.cc View 1 2 3 4 2 chunks +18 lines, -20 lines 0 comments Download
M content/renderer/accessibility/renderer_accessibility_browsertest.cc View 1 2 3 4 5 6 7 1 chunk +11 lines, -11 lines 0 comments Download
M content/renderer/render_frame_impl.h View 1 2 3 4 5 6 3 chunks +5 lines, -3 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 6 7 8 chunks +65 lines, -60 lines 1 comment Download
M content/renderer/render_view_browsertest.cc View 1 2 3 4 5 6 7 18 chunks +173 lines, -183 lines 0 comments Download
M content/renderer/render_view_impl.h View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 6 7 3 chunks +36 lines, -25 lines 0 comments Download

Messages

Total messages: 16 (3 generated)
clamy
@nasko: PTAL @carlosk, fdegans: FYI This CL follows https://codereview.chromium.org/979443002/ and removes the FrameMsg_Navigate_Params in favor ...
5 years, 9 months ago (2015-03-09 14:34:47 UTC) #2
nasko
The CL description is lacking a BUG and some comments. Overall, splitting the one params ...
5 years, 9 months ago (2015-03-09 23:24:24 UTC) #3
clamy
Thanks! I now have a struct bundling the other structs, hopefully it should make the ...
5 years, 9 months ago (2015-03-10 16:45:45 UTC) #4
nasko
Packing things in one struct does seem a bit cleaner from code readability perspective. I ...
5 years, 9 months ago (2015-03-11 13:59:00 UTC) #5
clamy
Thanks! https://codereview.chromium.org/971653004/diff/130001/content/browser/frame_host/render_frame_host_impl.h File content/browser/frame_host/render_frame_host_impl.h (right): https://codereview.chromium.org/971653004/diff/130001/content/browser/frame_host/render_frame_host_impl.h#newcode299 content/browser/frame_host/render_frame_host_impl.h:299: void Navigate(const CommonNavigationParams& common_params, On 2015/03/11 13:59:00, nasko ...
5 years, 9 months ago (2015-03-11 16:50:07 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/971653004/130001
5 years, 9 months ago (2015-03-12 10:17:00 UTC) #8
commit-bot: I haz the power
Committed patchset #8 (id:130001)
5 years, 9 months ago (2015-03-12 11:26:22 UTC) #9
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/34e1278e145473eeecf118e63f3530dfd3620f57 Cr-Commit-Position: refs/heads/master@{#320263}
5 years, 9 months ago (2015-03-12 11:27:16 UTC) #10
nasko
On 2015/03/12 11:27:16, I haz the power (commit-bot) wrote: > Patchset 8 (id:??) landed as ...
5 years, 9 months ago (2015-03-13 20:59:21 UTC) #11
Charlie Reis
Hmm, please include me on CLs that change NavigationEntry in the future. This is looking ...
5 years, 9 months ago (2015-03-16 19:09:43 UTC) #13
Charlie Reis
Some ex post facto comments below. Would you mind addressing them in a follow-up CL? ...
5 years, 9 months ago (2015-03-17 04:01:04 UTC) #14
clamy
I will work on another CL to address your comments. I think some of the ...
5 years, 9 months ago (2015-03-17 17:02:53 UTC) #15
Charlie Reis
5 years, 9 months ago (2015-03-17 17:08:13 UTC) #16
Message was sent while issue was closed.
On 2015/03/17 17:02:53, clamy wrote:
> I will work on another CL to address your comments. I think some of the
structs
> could be merged/renamed to provide a better understanding of what they are
> about. They essentially breakdown into 4:
> - parameters used everywhere (CommonNavigationParams)
> - parameters sent to the browser by the renderer during a renderer-initiated
> navigation in PlzNavigate (BeginNavigationParams)
> - parameters the browser should send to the renderer to start(current
> code)/commit(PlzNavigate) a navigation, used currently and in PlzNavigate
> (CommitNavigationParams and HistoryNavigationParams which could be merged)
> - parameters the browser shoudl send to the renderer to start a navigation in
> the current code (StartNavigationParams)
> 
> The names could probably be improved to better convey the intention behind
each
> of these structs.

Thanks, this helps!  (For example, I missed that Start vs Begin are for current
vs PlzNavigate.)  Let's try to convey these ideas more clearly in the .h file.

Powered by Google App Engine
This is Rietveld 408576698