commit | f4732b29093f7c6cbd70a4a7a02e580234d1491b | [log] [tgz] |
---|---|---|
author | Clark DuVall <cduvall@chromium.org> | Thu Apr 04 00:37:24 2024 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Apr 04 00:37:24 2024 |
tree | a456cb7d3b0e4823224cf6255aac5e9f46c2e024 | |
parent | 3798b6fafdbee0939de6056183732e60182edf32 [diff] |
Avoid copying ResourceRequest when possible network::ResourceRequest can be very expensive to copy because it may have to clone 6 mojo interfaces from ResourceRequest::TrustedParams. This can take multiple ms on Android, which doesn't even count the indirect cost of the extra mojo calls for each copy. There is a bug filed on mojo to allow passing structs by non-const ref at crbug.com/332697604, which should remove the need for the const_casts. Bug: 332706093 Change-Id: I5528b1df439e1e60f807166250a254af716afc54 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5420771 Reviewed-by: Nate Fischer <ntfschr@chromium.org> Commit-Queue: Clark DuVall <cduvall@chromium.org> Reviewed-by: Ken Rockot <rockot@google.com> Reviewed-by: Jinsuk Kim <jinsukkim@chromium.org> Cr-Commit-Position: refs/heads/main@{#1282252}
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.