#include "media/device_monitors/device_monitor_udev.h"
#include <string>
#include <vector>
#include "base/functional/bind.h"
#include "base/sequence_checker.h"
#include "base/system/system_monitor.h"
#include "base/task/thread_pool.h"
#include "device/udev_linux/udev.h"
#include "device/udev_linux/udev_watcher.h"
namespace {
struct SubsystemMap { … };
const char kAudioSubsystem[] = …;
const char kVideoSubsystem[] = …;
const SubsystemMap kSubsystemMap[] = …;
}
namespace media {
class DeviceMonitorLinux::BlockingTaskRunnerHelper
: public device::UdevWatcher::Observer { … };
DeviceMonitorLinux::BlockingTaskRunnerHelper::BlockingTaskRunnerHelper() { … }
void DeviceMonitorLinux::BlockingTaskRunnerHelper::Initialize() { … }
void DeviceMonitorLinux::BlockingTaskRunnerHelper::OnDeviceAdded(
device::ScopedUdevDevicePtr device) { … }
void DeviceMonitorLinux::BlockingTaskRunnerHelper::OnDeviceRemoved(
device::ScopedUdevDevicePtr device) { … }
void DeviceMonitorLinux::BlockingTaskRunnerHelper::OnDeviceChanged(
device::ScopedUdevDevicePtr device) { … }
void DeviceMonitorLinux::BlockingTaskRunnerHelper::OnDevicesChanged(
device::ScopedUdevDevicePtr device) { … }
DeviceMonitorLinux::DeviceMonitorLinux()
: … { … }
DeviceMonitorLinux::~DeviceMonitorLinux() = default;
}