commit | b83a00e2425bdfadd5182291a03afab6a52b2ce9 | [log] [tgz] |
---|---|---|
author | Adam Rice <ricea@chromium.org> | Wed Jul 17 07:56:51 2024 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Jul 17 07:56:51 2024 |
tree | 309654947f06f3177cd7d3bb675b0708a72671cc | |
parent | 4786d2f148d77024cad698dcd2220e481179d656 [diff] |
Add empty PrefetchMatchingURLLoaderFactory Add PrefetchMatchingURLLoaderFactory which will match incoming requests from a render process against prefetches. Currently no matching is done, it always delegates to a CorsURLLoaderFactory. Modify NetworkContext to hold and access the CorsURLLoaderFactory objects it owns via a ContextOwnedURLLoaderFactory interface, allowing the same methods to be used regardless if prefetching is enabled or not. Modify CorsURLLoaderFactory to make lifetime-related calls back to NetworkContext via a ContextOwnedURLLoaderFactoryOwner object, so it will continue to function correctly when it is owned by a PrefetchMatchingURLLoaderFactory instead. When the "NetworkContextPrefetch" flag is enabled, NetworkContext creates PrefetchMatchingURLLoaderFactory objects instead of CorsURLLoaderFactory objects. Bug: 342445996 Change-Id: I4738eca4c34fe9d3c69e0fd1a4ade33384d9d128 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5619636 Reviewed-by: Kouhei Ueno <kouhei@chromium.org> Commit-Queue: Adam Rice <ricea@chromium.org> Cr-Commit-Position: refs/heads/main@{#1328692}
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.