[Extension Bindings] Use returns_async to define all async returns This CL completes the rework of how asynchronous returns are represented in extension API schemas and the model the JSON schema compiler generates from them. Now all asynchronous returns are represented with the 'returns_asyc' field and default to supporting promise based calls unless the 'does_not_support_promises' field is specified. The IDL schema processing has also been updated to reflect this, with one exception case being added with a new extended attribute for the two automation APIs which have a trailing function parameter which is a function that gets called more than once. Along with all these changes, the remaining JSON schemas have been updated to define their async returns using the 'returns_async' field, with any remaining non-promise supporting functions being marked as such with a description and link to a tracking bug for that case where appropriate. Bug: 978538, 1288583 Change-Id: I042bb70e7dd171b1aa1d88ea85b27ef4b87e9ef3 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5121609 Reviewed-by: Ovidio Ruiz-HenrĂquez <odejesush@chromium.org> Commit-Queue: Tim <tjudkins@chromium.org> Reviewed-by: Devlin Cronin <rdevlin.cronin@chromium.org> Cr-Commit-Position: refs/heads/main@{#1256320}
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.