You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[cr138] CreateThrottlesForNavigation takes a NavigationThrottleRegistry param now
Chromium change:
https://source.chromium.org/chromium/chromium/src/+/be55153df12fd44a855f9db49f4656e624db3010
commit be55153df12fd44a855f9db49f4656e624db3010
Author: Takashi Toyoshima <[email protected]>
Date: Fri May 2 11:13:52 2025 -0700
Reland "NavigationThrottleRunner2: content::NavigationThrottleRegistry"
This is a reland of commit 06e076907244efc5fae5abe219b326238889071d
The original change below didn't handle a chromecast specific subclass,
and it caused a build failure on chromecast bot.
Original change's description:
> NavigationThrottleRunner2: content::NavigationThrottleRegistry
>
> This CL introduces a NavigationThrottleRegistry.
> CreateThrottlesForNavigation() is changed to use this interface to
> register a NavigationThrottle for a new navigation.
>
> We still handle the returned throttles vector to keep the legacy
> interface available. But, once all the existing NavigationThrottle are
> migrated to use the NavigationThrottleRegistry, we will remove the
> legacy way, and the signature will be changed to return void.
>
> With this interface, we can implement several optimization step by step
> without changing the existing API signature further more. For instance,
> we can provide following features via the new registry interface;
> - fast access paths to check navigation attributes
> - per-event registration to optimize event loops
>
> Eventually, I will introduce a new NavigationThrottleRunner class. As we
> want to share some common implementation among the original runner and
> the new runner during the experiment, I will move the common logic to
> this registry class and both runners will own it to share the
> implementation.
>
> Essential changes are in the NavigationThrottleRunner, and
> //content/public. Others are call side mechanical changes.
>
> Bug: 412524375
> Change-Id: Ifda11e0f5cf446135c9ab34df025573346c7639c
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6478853
> Reviewed-by: Nate Fischer <[email protected]>
> Auto-Submit: Takashi Toyoshima <[email protected]>
> Commit-Queue: Takashi Toyoshima <[email protected]>
> Reviewed-by: Alex Moshchuk <[email protected]>
> Cr-Commit-Position: refs/heads/main@{#1454542}
Bug: 412524375
0 commit comments