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

Unified Diff: media/capture/device_monitor_udev.h

Issue 2224643002: Move device monitors out of //media/capture into //media/device_monitors (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 | « media/capture/device_monitor_mac.mm ('k') | media/capture/device_monitor_udev.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/capture/device_monitor_udev.h
diff --git a/media/capture/device_monitor_udev.h b/media/capture/device_monitor_udev.h
deleted file mode 100644
index a8f9d8201d9e4453459da92327e4993539a07921..0000000000000000000000000000000000000000
--- a/media/capture/device_monitor_udev.h
+++ /dev/null
@@ -1,57 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-// This class is used to detect device change and notify base::SystemMonitor
-// on Linux.
-
-#ifndef MEDIA_CAPTURE_DEVICE_MONITOR_UDEV_H_
-#define MEDIA_CAPTURE_DEVICE_MONITOR_UDEV_H_
-
-#include <memory>
-
-#include "base/macros.h"
-#include "base/memory/ref_counted.h"
-#include "base/message_loop/message_loop.h"
-#include "base/single_thread_task_runner.h"
-#include "media/capture/capture_export.h"
-
-extern "C" {
-struct udev_device;
-}
-
-namespace device {
-class UdevLinux;
-}
-
-namespace media {
-
-class CAPTURE_EXPORT DeviceMonitorLinux
- : public base::MessageLoop::DestructionObserver {
- public:
- explicit DeviceMonitorLinux(
- const scoped_refptr<base::SingleThreadTaskRunner>& io_task_runner);
- ~DeviceMonitorLinux() override;
-
- // TODO(mcasas): Consider adding a StartMonitoring() method like
- // DeviceMonitorMac to reduce startup impact time.
-
- private:
- // This object is deleted on the constructor thread after |io_task_runner_|
- // has been destroyed. Need to know when the latter is being destroyed so that
- // we can delete |udev_|.
- void WillDestroyCurrentMessageLoop() override;
-
- void Initialize();
- void OnDevicesChanged(udev_device* device);
-
- const scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_;
-
- std::unique_ptr<device::UdevLinux> udev_;
-
- DISALLOW_COPY_AND_ASSIGN(DeviceMonitorLinux);
-};
-
-} // namespace media
-
-#endif // MEDIA_CAPTURE_DEVICE_MONITOR_UDEV_H_
« no previous file with comments | « media/capture/device_monitor_mac.mm ('k') | media/capture/device_monitor_udev.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698