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

Issue 1018383002: Make NavigationParams clearer (Closed)

Created:
5 years, 9 months ago by clamy
Modified:
5 years, 9 months ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, je_julie(Not used), creis+watch_chromium.org, plundblad+watch_chromium.org, aboxhall+watch_chromium.org, nektar+watch_chromium.org, nasko+codewatch_chromium.org, jam, yuzo+watch_chromium.org, darin-cc_chromium.org, dmazzoni+watch_chromium.org, dtseng+watch_chromium.org, mkwst+moarreviews-renderer_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make NavigationParams clearer This CL follows https://codereview.chromium.org/971653004/ and clarifies the use of the various NavigationParams. In particular it merges the CommitNavigationParams and the HistoryNavigationParams since they are generated and sent always by pair. BUG=459033 Committed: https://crrev.com/57b4b8e10887992956e9f2f5906c1e44e5b3a628 Cr-Commit-Position: refs/heads/master@{#321991}

Patch Set 1 #

Total comments: 1

Patch Set 2 : #

Total comments: 17

Patch Set 3 : Addressed Charlie's comments #

Total comments: 4

Patch Set 4 : Rebase + addressed comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+405 lines, -432 lines) Patch
M content/browser/frame_host/navigation_controller_impl_unittest.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/frame_host/navigation_entry_impl.h View 1 2 3 chunks +12 lines, -11 lines 0 comments Download
M content/browser/frame_host/navigation_entry_impl.cc View 1 2 4 chunks +61 lines, -64 lines 0 comments Download
M content/browser/frame_host/navigation_request.h View 1 2 4 chunks +5 lines, -9 lines 0 comments Download
M content/browser/frame_host/navigation_request.cc View 1 2 3 chunks +14 lines, -12 lines 0 comments Download
M content/browser/frame_host/navigator_impl.h View 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/frame_host/navigator_impl.cc View 1 2 3 2 chunks +5 lines, -4 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.h View 1 2 2 chunks +2 lines, -4 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 3 7 chunks +11 lines, -15 lines 0 comments Download
M content/browser/frame_host/render_frame_host_manager.h View 1 chunk +0 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_view_host_impl.h View 1 chunk +0 lines, -1 line 0 comments Download
M content/common/frame_messages.h View 1 2 4 chunks +14 lines, -19 lines 0 comments Download
M content/common/navigation_params.h View 1 2 3 5 chunks +83 lines, -66 lines 0 comments Download
M content/common/navigation_params.cc View 1 2 3 chunks +44 lines, -55 lines 0 comments Download
M content/public/test/render_view_test.cc View 1 2 2 chunks +8 lines, -7 lines 0 comments Download
M content/renderer/accessibility/renderer_accessibility_browsertest.cc View 1 2 1 chunk +6 lines, -7 lines 0 comments Download
M content/renderer/navigation_state_impl.h View 1 2 4 chunks +5 lines, -5 lines 0 comments Download
M content/renderer/navigation_state_impl.cc View 1 2 2 chunks +5 lines, -5 lines 0 comments Download
M content/renderer/render_frame_impl.h View 1 2 4 chunks +3 lines, -7 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 15 chunks +33 lines, -37 lines 0 comments Download
M content/renderer/render_view_browsertest.cc View 1 2 19 chunks +85 lines, -91 lines 0 comments Download
M content/renderer/render_view_impl.h View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 chunks +7 lines, -7 lines 0 comments Download

Messages

Total messages: 13 (3 generated)
clamy
@creis, avi, nasko: PTAL This is a followup on https://codereview.chromium.org/971653004/ following Charlie's comments in this ...
5 years, 9 months ago (2015-03-19 17:12:31 UTC) #2
Avi (use Gerrit)
LGTM; cleaner. Thanks for the heads-up.
5 years, 9 months ago (2015-03-19 18:21:40 UTC) #3
Charlie Reis
Thanks! This is much better overall, and combining Commit and History sounds fine to me. ...
5 years, 9 months ago (2015-03-19 20:45:52 UTC) #4
clamy
Thanks! https://codereview.chromium.org/1018383002/diff/20001/content/common/frame_messages.h File content/common/frame_messages.h (right): https://codereview.chromium.org/1018383002/diff/20001/content/common/frame_messages.h#newcode243 content/common/frame_messages.h:243: IPC_STRUCT_TRAITS_BEGIN(content::BeginNavigationParams) On 2015/03/19 20:45:51, Charlie Reis wrote: > ...
5 years, 9 months ago (2015-03-20 10:42:43 UTC) #5
Charlie Reis
Thanks! LGTM with nits. https://codereview.chromium.org/1018383002/diff/40001/content/browser/frame_host/navigation_entry_impl.cc File content/browser/frame_host/navigation_entry_impl.cc (right): https://codereview.chromium.org/1018383002/diff/40001/content/browser/frame_host/navigation_entry_impl.cc#newcode434 content/browser/frame_host/navigation_entry_impl.cc:434: int pending_offset_to_send = pending_history_list_offset; nit: ...
5 years, 9 months ago (2015-03-20 21:07:34 UTC) #6
nasko
IPC LGTM
5 years, 9 months ago (2015-03-23 16:12:03 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1018383002/60001
5 years, 9 months ago (2015-03-24 12:42:44 UTC) #10
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 9 months ago (2015-03-24 13:32:20 UTC) #11
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/57b4b8e10887992956e9f2f5906c1e44e5b3a628 Cr-Commit-Position: refs/heads/master@{#321991}
5 years, 9 months ago (2015-03-24 13:33:19 UTC) #12
clamy
5 years, 9 months ago (2015-03-24 13:33:38 UTC) #13
Message was sent while issue was closed.
Thanks! (Forgot to send the mail before clicking on submit).

https://codereview.chromium.org/1018383002/diff/40001/content/browser/frame_h...
File content/browser/frame_host/navigation_entry_impl.cc (right):

https://codereview.chromium.org/1018383002/diff/40001/content/browser/frame_h...
content/browser/frame_host/navigation_entry_impl.cc:434: int
pending_offset_to_send = pending_history_list_offset;
On 2015/03/20 21:07:34, Charlie Reis wrote:
> nit: Is there a reason to make copies of these?

I thought it would be weird and not very readable to modify the parameters of
the function directly. Also I did not want to call the constructor with ternary
operators as this would mean removing the comment, which is pretty useful.

https://codereview.chromium.org/1018383002/diff/40001/content/common/navigati...
File content/common/navigation_params.h (right):

https://codereview.chromium.org/1018383002/diff/40001/content/common/navigati...
content/common/navigation_params.h:161: // PlzNavigate: sent to the renderer to
commit a navigation.
On 2015/03/20 21:07:34, Charlie Reis wrote:
> Please change this last sentence to:
> PlzNavigate: sent to the renderer to make it issue a stream request for a
> navigation that is ready to commit.

Done.

Powered by Google App Engine
This is Rietveld 408576698