Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prerender: Simplify PrerenderNavigationThrottle
This is a pure refactoring. This doesn't change functional behavior. - Makes PrerenderNavigationThrottle keep a raw_ptr to PrerenderHost. This should be safe as PrerenderHost is never changed through the lifetime of PrerenderNavigationThrottle and outlives the throttle. - Factors out code to cancel prerendering into CancelPrerendering(). - Adds IsCrossSite() helper. Before this change, PrerenderNavigationThrottle negated IsSameSite() for checking cross-site navigation. This is correct, but IsCrossSite() should be more intuitive. Bug: 1422248 Change-Id: Id20790c922fe35f8bb64e6fe67fd89921f8f6757 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4353255 Commit-Queue: Hiroki Nakagawa <nhiroki@chromium.org> Reviewed-by: Lingqi Chi <lingqi@chromium.org> Cr-Commit-Position: refs/heads/main@{#1120398}
- Loading branch information
Showing
4 changed files
with
75 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters