commit | 21718cc2274ec87c679d9a14643d440148966cdd | [log] [tgz] |
---|---|---|
author | clamy <clamy@chromium.org> | Wed Jun 13 13:34:24 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Wed Jun 13 13:34:24 2018 |
tree | 1d077ab9787e1f4005181a55618a464ba6a26167 | |
parent | e8c2d51108f34ad49132fe9c17eb9b7d9af88659 [diff] |
Move NavigationRequest creation to NavigationController 3/3 This CL creates a new function in NavigationController following the move of the NavigationRequest creation to the NavigationController. This function, NavigateWithoutEntry is called for new navigations, for which we don't have a NavigationEntry. It creates a pending NavigationEntry and a single NavigationRequest based on the LoadURLParams, then asks the Navigator to navigate to it. This allows the creation of NavigationRequests based on LoadURLParams in a function that has access to LoadURLParams. This is part of a larger refactoring effort. I plan to follow up this CL by additional work: 1) Adding another method for creating NavigationRequests that only uses the LoadURLParams and does not depend on the pending NavigationEntry. 2) Introduce a NavigateToExistingEntry method that will be used for navigations to existing NavigationEntries. 3) Unifying code in StartHistoryNavigationInNewChild and NavigateFromFrameProxy with NavigateToExistingEntry and NavigateWithoutEntry. 4) Removing the pending NavigationEntry and instead create NavigationEntries from the NavigationRequests when the navigation commits. Bug: 803365, 803859 Change-Id: I325ddbab2309ce88c138e7e92755aa31cc6c4617 Reviewed-on: https://chromium-review.googlesource.com/904988 Commit-Queue: Camille Lamy <clamy@chromium.org> Reviewed-by: Nasko Oskov <nasko@chromium.org> Reviewed-by: Charlie Reis <creis@chromium.org> Cr-Commit-Position: refs/heads/master@{#566817}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .