0
Files
src/content/renderer
Alex Yang 66e55b1e84 Construct local resource loader in WebUI renderer processes
This commit completes work started in two previous commits:

- https://crrev.com/c/5896651, which added the ability to generate a
  Mojo struct containing WebUI resource metadata (URL path to resource
  ID mapping, i18n string replacements, etc.) in the browser process
- https://crrev.com/c/5955670, which adds an implementation of an
  in-process resource loader for use in the renderer process.

This commit has the browser process generate WebUI resource metadata and
send it to WebUI renderer processes. The renderer process then uses this
metadata to construct an in-process resource loader with the ability to
retrieve resources directly from the memory-mapped 'resources.pak' file.

All of this happens if and only if the WebUIInProcessResourceLoading
base::Feature is enabled. This is disabled by default, so this commit
does not change the production codepath.

This commit adds the aforementioned Mojo struct and in-process resource
loader implementation to the binary all at once, so the 32KB Fuchsia
binary size increase is actually the result of 3 separate commits.

Fuchsia-Binary-Size: See commit description.
Bug: 362511750
Change-Id: I90991b35eb7f637d5ad651d4fc4e173a06121bc9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5955234
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Reviewed-by: Rakina Zata Amni <rakina@chromium.org>
Commit-Queue: Alex Yang <aycyang@chromium.org>
Code-Coverage: findit-for-me@appspot.gserviceaccount.com <findit-for-me@appspot.gserviceaccount.com>
Cr-Commit-Position: refs/heads/main@{#1406831}
2025-01-15 10:42:23 -08:00
..
2024-10-31 19:37:21 +00:00
2024-11-08 21:56:14 +00:00
2024-09-11 15:27:54 +00:00