Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(238)

Unified Diff: device/capture/device_monitor_udev.cc

Issue 2214533002: move //media/capture to //device/capture (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « device/capture/device_monitor_udev.h ('k') | device/capture/system_message_window_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/capture/device_monitor_udev.cc
diff --git a/media/capture/device_monitor_udev.cc b/device/capture/device_monitor_udev.cc
similarity index 81%
rename from media/capture/device_monitor_udev.cc
rename to device/capture/device_monitor_udev.cc
index a010427d0be260694d7c90ecc106d3dac960e91a..839889ccf24697a1b4ff55ef005a07b02e63e2f2 100644
--- a/media/capture/device_monitor_udev.cc
+++ b/device/capture/device_monitor_udev.cc
@@ -4,7 +4,7 @@
// libudev is used for monitoring device changes.
-#include "media/capture/device_monitor_udev.h"
+#include "device/capture/device_monitor_udev.h"
#include <stddef.h>
@@ -34,19 +34,19 @@ const SubsystemMap kSubsystemMap[] = {
} // namespace
-namespace media {
+namespace device {
-DeviceMonitorLinux::DeviceMonitorLinux(
+DeviceMonitorUdev::DeviceMonitorUdev(
const scoped_refptr<base::SingleThreadTaskRunner>& io_task_runner)
: io_task_runner_(io_task_runner) {
io_task_runner_->PostTask(
FROM_HERE,
- base::Bind(&DeviceMonitorLinux::Initialize, base::Unretained(this)));
+ base::Bind(&DeviceMonitorUdev::Initialize, base::Unretained(this)));
}
-DeviceMonitorLinux::~DeviceMonitorLinux() {}
+DeviceMonitorUdev::~DeviceMonitorUdev() {}
-void DeviceMonitorLinux::Initialize() {
+void DeviceMonitorUdev::Initialize() {
DCHECK(io_task_runner_->BelongsToCurrentThread());
// We want to be notified of IO message loop destruction to delete |udev_|.
@@ -58,16 +58,16 @@ void DeviceMonitorLinux::Initialize() {
device::UdevLinux::UdevMonitorFilter(entry.subsystem, entry.devtype));
}
udev_.reset(new device::UdevLinux(
- filters, base::Bind(&DeviceMonitorLinux::OnDevicesChanged,
+ filters, base::Bind(&DeviceMonitorUdev::OnDevicesChanged,
base::Unretained(this))));
}
-void DeviceMonitorLinux::WillDestroyCurrentMessageLoop() {
+void DeviceMonitorUdev::WillDestroyCurrentMessageLoop() {
DCHECK(io_task_runner_->BelongsToCurrentThread());
udev_.reset();
}
-void DeviceMonitorLinux::OnDevicesChanged(udev_device* device) {
+void DeviceMonitorUdev::OnDevicesChanged(udev_device* device) {
DCHECK(io_task_runner_->BelongsToCurrentThread());
DCHECK(device);
@@ -85,4 +85,4 @@ void DeviceMonitorLinux::OnDevicesChanged(udev_device* device) {
base::SystemMonitor::Get()->ProcessDevicesChanged(device_type);
}
-} // namespace media
+} // namespace device
« no previous file with comments | « device/capture/device_monitor_udev.h ('k') | device/capture/system_message_window_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698