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

Issue 1001043002: Refactor NavigationState to use NavigationParams (Closed)

Created:
5 years, 9 months ago by clamy
Modified:
5 years, 8 months ago
CC:
browser-components-watch_chromium.org, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, estade+watch_chromium.org, gcasto+watchlist_chromium.org, grt+watch_chromium.org, jam, mkwst+moarreviews-renderer_chromium.org, mkwst+watchlist-passwords_chromium.org, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org, rouslan+autofillwatch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Refactor NavigationState to use NavigationParams This CL separates NavigationState into a public interface with a limited number of functions exposed outside of content/, and an implementation. The implementation now owns a set of NavigationParams. For browser-initiated navigations they are passed by the RenderView, and for renderer-intiated navigations they have default values. This also allows to reset the pending_navigation_params of RenderView with their values when the provisional load fails for browser-initiated navigations. BUG=459033 Committed: https://crrev.com/5f34220fb49903614381e6efd516149174989b84 Cr-Commit-Position: refs/heads/master@{#321120}

Patch Set 1 #

Patch Set 2 : #

Total comments: 27

Patch Set 3 : Addressed comments #

Patch Set 4 : Rebase #

Total comments: 8

Patch Set 5 : Addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+213 lines, -226 lines) Patch
M android_webview/renderer/aw_content_renderer_client.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/renderer/safe_browsing/phishing_classifier_delegate.cc View 1 2 1 chunk +4 lines, -3 lines 0 comments Download
M components/autofill/content/renderer/password_autofill_agent.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/content_renderer.gypi View 1 1 chunk +2 lines, -0 lines 0 comments Download
M content/public/renderer/navigation_state.h View 1 2 1 chunk +5 lines, -114 lines 0 comments Download
M content/public/renderer/navigation_state.cc View 1 chunk +0 lines, -18 lines 0 comments Download
A content/renderer/navigation_state_impl.h View 1 2 3 4 1 chunk +77 lines, -0 lines 0 comments Download
A content/renderer/navigation_state_impl.cc View 1 2 3 4 1 chunk +51 lines, -0 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 25 chunks +60 lines, -58 lines 0 comments Download
M content/renderer/render_view_browsertest.cc View 1 2 3 4 chunks +4 lines, -3 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 3 chunks +7 lines, -27 lines 0 comments Download

Messages

Total messages: 19 (5 generated)
clamy
@nasko: PTAL @carlosk, fdegans: FYI This should be the last refactoring state before the patch ...
5 years, 9 months ago (2015-03-16 16:31:37 UTC) #2
clamy
@avi, creis: PTAL This does interact with https://codereview.chromium.org/1002803002/, so I'd like your opinion on the ...
5 years, 9 months ago (2015-03-16 16:55:46 UTC) #4
Avi (use Gerrit)
I really like this cleanup. LGTM https://codereview.chromium.org/1001043002/diff/20001/content/public/renderer/navigation_state.h File content/public/renderer/navigation_state.h (right): https://codereview.chromium.org/1001043002/diff/20001/content/public/renderer/navigation_state.h#newcode27 content/public/renderer/navigation_state.h:27: virtual bool GetWasWithinSamePage() ...
5 years, 9 months ago (2015-03-16 18:10:24 UTC) #5
Charlie Reis
I like this as well. Please don't commit just yet, though-- it looks like there ...
5 years, 9 months ago (2015-03-17 03:26:31 UTC) #6
clamy
Thanks! https://codereview.chromium.org/1001043002/diff/20001/content/public/renderer/navigation_state.h File content/public/renderer/navigation_state.h (right): https://codereview.chromium.org/1001043002/diff/20001/content/public/renderer/navigation_state.h#newcode24 content/public/renderer/navigation_state.h:24: virtual ui::PageTransition GetTransitionType() const = 0; On 2015/03/17 ...
5 years, 9 months ago (2015-03-17 16:08:18 UTC) #7
Charlie Reis
Thanks! LGTM with nits. https://codereview.chromium.org/1001043002/diff/20001/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (left): https://codereview.chromium.org/1001043002/diff/20001/content/renderer/render_frame_impl.cc#oldcode2449 content/renderer/render_frame_impl.cc:2449: error.unreachableURL, Referrer(), On 2015/03/17 16:08:18, ...
5 years, 9 months ago (2015-03-17 16:29:06 UTC) #8
clamy
@sdefresne: PTAL at the changes in components/ @mattm: PTAL at the changes in chrome/renderer/safe_browsing @torne: ...
5 years, 9 months ago (2015-03-17 17:19:55 UTC) #9
clamy
@sdefresne: PTAL at the changes in components/ @jochen: PTAL at the changes in chrome/renderer/safe_browsing @torne: ...
5 years, 9 months ago (2015-03-18 12:41:48 UTC) #11
Torne
android_webview LGTM
5 years, 9 months ago (2015-03-18 13:00:35 UTC) #12
jochen (gone - plz use gerrit)
lgtm
5 years, 9 months ago (2015-03-18 13:01:18 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1001043002/80001
5 years, 9 months ago (2015-03-18 13:15:24 UTC) #16
sdefresne
lgtm
5 years, 9 months ago (2015-03-18 13:25:07 UTC) #17
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 9 months ago (2015-03-18 13:48:10 UTC) #18
commit-bot: I haz the power
5 years, 9 months ago (2015-03-18 13:48:58 UTC) #19
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/5f34220fb49903614381e6efd516149174989b84
Cr-Commit-Position: refs/heads/master@{#321120}

Powered by Google App Engine
This is Rietveld 408576698