#include "chrome/browser/ui/views/media_preview/camera_preview/camera_mediator.h"
#include "base/functional/bind.h"
#include "chrome/browser/media/prefs/capture_device_ranking.h"
#include "content/public/browser/video_capture_service.h"
#include "services/video_capture/public/mojom/video_capture_service.mojom.h"
CameraMediator::CameraMediator(PrefService& prefs,
DevicesChangedCallback devices_changed_callback)
: … { … }
CameraMediator::~CameraMediator() = default;
void CameraMediator::BindVideoSource(
const std::string& device_id,
mojo::PendingReceiver<video_capture::mojom::VideoSource> source_receiver) { … }
void CameraMediator::InitializeDeviceList() { … }
void CameraMediator::OnVideoDevicesChanged(
const std::optional<std::vector<media::VideoCaptureDeviceInfo>>&
device_infos) { … }