OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // libudev is used for monitoring device changes. | 5 // libudev is used for monitoring device changes. |
6 | 6 |
7 #include "media/capture/device_monitor_udev.h" | 7 #include "media/device_monitors/device_monitor_udev.h" |
8 | 8 |
9 #include <stddef.h> | 9 #include <stddef.h> |
10 | 10 |
11 #include <string> | 11 #include <string> |
12 | 12 |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "base/system_monitor/system_monitor.h" | 14 #include "base/system_monitor/system_monitor.h" |
15 #include "device/udev_linux/udev.h" | 15 #include "device/udev_linux/udev.h" |
16 #include "device/udev_linux/udev_linux.h" | 16 #include "device/udev_linux/udev_linux.h" |
17 | 17 |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 device_type = entry.device_type; | 79 device_type = entry.device_type; |
80 break; | 80 break; |
81 } | 81 } |
82 } | 82 } |
83 DCHECK_NE(device_type, base::SystemMonitor::DEVTYPE_UNKNOWN); | 83 DCHECK_NE(device_type, base::SystemMonitor::DEVTYPE_UNKNOWN); |
84 | 84 |
85 base::SystemMonitor::Get()->ProcessDevicesChanged(device_type); | 85 base::SystemMonitor::Get()->ProcessDevicesChanged(device_type); |
86 } | 86 } |
87 | 87 |
88 } // namespace media | 88 } // namespace media |
OLD | NEW |