#include "chrome/browser/ui/views/media_preview/mic_preview/mic_mediator.h"
#include <utility>
#include "base/functional/bind.h"
#include "chrome/browser/media/prefs/capture_device_ranking.h"
#include "content/public/browser/audio_service.h"
MicMediator::MicMediator(PrefService& prefs,
DevicesChangedCallback devices_changed_callback)
: … { … }
MicMediator::~MicMediator() = default;
void MicMediator::GetAudioInputDeviceFormats(
const std::string& device_id,
audio::mojom::SystemInfo::GetInputStreamParametersCallback callback) { … }
void MicMediator::BindAudioStreamFactory(
mojo::PendingReceiver<media::mojom::AudioStreamFactory>
audio_stream_factory) { … }
void MicMediator::InitializeDeviceList() { … }
void MicMediator::OnAudioDevicesChanged(
const std::optional<std::vector<media::AudioDeviceDescription>>&
device_infos) { … }