commit | 892030dcd7dcb4f29c834af05a1cd25fb96cae15 | [log] [tgz] |
---|---|---|
author | Fred Shih <ffred@chromium.org> | Wed Mar 19 19:07:31 2025 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Mar 19 19:07:31 2025 |
tree | 0ef1ecc1e95a1d5819136bdb9f917161f39b6dea | |
parent | 939523ffb33160c5c5aa55e7481f245cf7a035c2 [diff] |
Rework how result type response is generated My initial instinct was to separate the result response type from the response param list type, but this turned out to be the wrong approach. There are too many templates that expect responses to either a param list or empty. It's too much work to rework all the assumptions. Instead, the result_response field serves as additional information in the method object to interpret the response param list. If the method returns a result response type, there can be one and only one parameter, with the name 'result'. This approach minimizes the change in template generation and still provides us with enough context in runtime to interpret the incoming data. Bug: 40841428 Change-Id: I9576beae07724bee6f9e4ba0a5ef628d51f9a349 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6370863 Reviewed-by: Alex Gough <ajgo@chromium.org> Commit-Queue: Fred Shih <ffred@chromium.org> Cr-Commit-Position: refs/heads/main@{#1435005}
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.