commit | 5f067a2a0fd6d0f6fd551c5b3b0e822e800fabf4 | [log] [tgz] |
---|---|---|
author | Tsuyoshi Horo <horo@chromium.org> | Fri Dec 06 12:01:44 2024 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Dec 06 12:01:44 2024 |
tree | ea0a827fa1bc8d5ca3f47b569e8dc840dd0000de | |
parent | 3953afb82212cd75c4a06b772262f34891f0bb33 [diff] |
Support Translator API on workers Previously, the `mojom::TranslationManager` interface was only accessible from frames because it was registered with the mojo binder map only within the `PopulateChromeFrameBinders` method. This CL makes the `mojom::TranslationManager` interface available to workers by introducing a new public method in `ContentBrowserClient` `BindTranslationManager()`. This method is called by the following methods: - `PopulateFrameBinders()` - `PopulateDedicatedWorkerBinders()` - `PopulateSharedWorkerBinders()` - `PopulateServiceWorkerBinders()` Additionally, this CL updates the relevant IDL files to expose the Translator API to workers. Fixed: 381983087 Change-Id: Ib14ef9137340054f05fac4b67dd29ae928b64bfc Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6069226 Commit-Queue: Tsuyoshi Horo <horo@chromium.org> Reviewed-by: Rakina Zata Amni <rakina@chromium.org> Reviewed-by: Fergal Daly <fergal@chromium.org> Reviewed-by: Takashi Toyoshima <toyoshim@chromium.org> Cr-Commit-Position: refs/heads/main@{#1392829}
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.