Implement AudioInputController in Libassistant mojom service
This CL migrates the implementation of |AudioInputProviderImpl| and |AudioInputImpl| to the new Libassistant mojom service. To reduce the size of the CL this migration has been split in 3 CLs: 1. The mojom APIs 2. The implementation on the Libassistant mojom service (this CL). 3. Changing the Browser side to use the new mojom service. This does mean that this CL has to copy |AudioInputImpl|, |AudioInputProviderImpl| and |AudioInputStream|, rather than move them. In a follow up CL these classes will be removed from //chromeos/services/assistant, when they are unused there. These classes are mostly unchanged, except: - Renamed |AudioStream| to |AudioInputStream|. - Replaced |AudioStreamFactoryDelegate| with |mojom::AudioStreamFactoryDelegate|. - Stripped support for the gn flag `enable_fake_assistant_microphone`, as that would have required some extra files to be moved (and this CL is big enough as-is). I will re-add this in a follow up CL. Note that the fake microphone still works, as this new version is not used anyway. - An extra VLOG in UpdateRecordingState(). Bug: b/171748795 Test: chromeos_unittests --gtest_filter="Audio*" Cq-Include-Trybots: luci.chrome.try:linux-chromeos-chrome Change-Id: I80965e5de31ea48c19363966bae384414b16bcc8 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2605706 Commit-Queue: Jeroen Dhollander <jeroendh@chromium.org> Auto-Submit: Jeroen Dhollander <jeroendh@chromium.org> Reviewed-by:Xiaohui Chen <xiaohuic@chromium.org> Reviewed-by:
Dale Curtis <dalecurtis@chromium.org> Cr-Commit-Position: refs/heads/master@{#844206}
Showing
This diff is collapsed.
This diff is collapsed.
Please register or sign in to comment