[fetch-later] Update "Reserve deferred-fetch quota" implementation This updates the [fetch-later][3] feature which is in OT. However, no real prod impact as changes are gated behind a flag. This CL updates the implementation of the [algorithm][1], which is the `GetContainerDeferredFetchPolicyOnNavigation()` method: - Move its call site into `FrameLoader::StartNavigation()` to match the [Step 22. in the new html spec PR][2]. As a result, now it needs to take additional arg `to_url` as the navigation just starts. - Allow it to trigger `PermissionsPolicy::InheritedValueForFeature()`, which is necessary for its quota calculation. [1]: https://whatpr.org/fetch/1647.html#reserve-deferred-fetch-quota [2]: https://whatpr.org/html/10903/d1c086a...0e0afb3/browsing-the-web.html#beginning-navigation [3]: https://developer.chrome.com/blog/fetch-later-api-origin-trial Bug: 40276121 Change-Id: If5423428c3f4a059761bf6e89d788ad2130aaf67 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6162375 Reviewed-by: Koji Ishii <kojii@chromium.org> Reviewed-by: Daniel Vogelheim <vogelheim@chromium.org> Reviewed-by: Ian Clelland <iclelland@chromium.org> Reviewed-by: Adam Rice <ricea@chromium.org> Commit-Queue: Ming-Ying Chung <mych@chromium.org> Cr-Commit-Position: refs/heads/main@{#1405954}
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.
To check out the source code locally, don't use git clone! Instead, follow the instructions on how to get the code.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure.
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.
If you found a bug, please file it at https://crbug.com/new.