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

Unified Diff: content/browser/device_monitor_linux.h

Issue 12374068: Make it possible to disable udev in linux (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: unbreak mac Created 7 years, 1 month 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 | « content/browser/browser_main_loop.cc ('k') | content/browser/device_monitor_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/device_monitor_linux.h
diff --git a/content/browser/device_monitor_linux.h b/content/browser/device_monitor_linux.h
deleted file mode 100644
index b56de1ebdc04ea32deea175407fba2fc9cbefcd8..0000000000000000000000000000000000000000
--- a/content/browser/device_monitor_linux.h
+++ /dev/null
@@ -1,44 +0,0 @@
-// Copyright (c) 2012 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 CONTENT_BROWSER_DEVICE_MONITOR_LINUX_H_
-#define CONTENT_BROWSER_DEVICE_MONITOR_LINUX_H_
-
-#include "base/basictypes.h"
-#include "base/memory/scoped_ptr.h"
-#include "base/message_loop/message_loop.h"
-
-extern "C" {
-struct udev_device;
-}
-
-namespace content {
-
-class UdevLinux;
-
-class DeviceMonitorLinux : public base::MessageLoop::DestructionObserver {
- public:
- DeviceMonitorLinux();
- virtual ~DeviceMonitorLinux();
-
- private:
- // This object is deleted on the UI thread after the IO thread has been
- // destroyed. Need to know when IO thread is being destroyed so that
- // we can delete udev_.
- virtual void WillDestroyCurrentMessageLoop() OVERRIDE;
-
- void Initialize();
- void OnDevicesChanged(udev_device* device);
-
- scoped_ptr<UdevLinux> udev_;
-
- DISALLOW_COPY_AND_ASSIGN(DeviceMonitorLinux);
-};
-
-} // namespace content
-
-#endif // CONTENT_BROWSER_DEVICE_MONITOR_LINUX_H_
« no previous file with comments | « content/browser/browser_main_loop.cc ('k') | content/browser/device_monitor_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698