#include "media/capture/video/linux/video_capture_device_factory_linux.h"
#include "base/feature_list.h"
#include "media/capture/capture_switches.h"
#include "media/capture/video/linux/video_capture_device_factory_v4l2.h"
#if defined(WEBRTC_USE_PIPEWIRE)
#include "media/capture/video/linux/video_capture_device_factory_webrtc.h"
#endif
#include "media/capture/video/video_capture_metrics.h"
namespace media {
VideoCaptureDeviceFactoryLinux::VideoCaptureDeviceFactoryLinux(
scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner)
: … { … }
VideoCaptureDeviceFactoryLinux::~VideoCaptureDeviceFactoryLinux() = default;
VideoCaptureErrorOrDevice VideoCaptureDeviceFactoryLinux::CreateDevice(
const VideoCaptureDeviceDescriptor& device_descriptor) { … }
void VideoCaptureDeviceFactoryLinux::GetDevicesInfo(
GetDevicesInfoCallback callback) { … }
#if defined(WEBRTC_USE_PIPEWIRE)
void VideoCaptureDeviceFactoryLinux::OnGetDevicesInfo(
GetDevicesInfoCallback callback,
std::vector<VideoCaptureDeviceInfo> devices_info) { … }
#endif
}