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

Unified Diff: device/core/device_monitor_linux.h

Issue 2014933002: Move DeviceMonitorLinux to //device/core. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added comment for boolean parameter. Created 4 years, 7 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/core/core.gyp ('k') | device/core/device_monitor_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/core/device_monitor_linux.h
diff --git a/device/hid/device_monitor_linux.h b/device/core/device_monitor_linux.h
similarity index 89%
rename from device/hid/device_monitor_linux.h
rename to device/core/device_monitor_linux.h
index 4f2bc48557978f360ff4a95bcd37170fb2dcd1b0..af18f6317ec159da7ba3a87e173251d13eb4a989 100644
--- a/device/hid/device_monitor_linux.h
+++ b/device/core/device_monitor_linux.h
@@ -14,6 +14,7 @@
#include "base/message_loop/message_pump_libevent.h"
#include "base/observer_list.h"
#include "base/threading/thread_checker.h"
+#include "device/core/device_core_export.h"
#include "device/udev_linux/scoped_udev.h"
struct udev_device;
@@ -23,8 +24,9 @@ namespace device {
// This class listends for notifications from libudev about
// connected/disconnected devices. This class is *NOT* thread-safe and
// all methods must be accessed from the FILE thread.
-class DeviceMonitorLinux : public base::MessageLoop::DestructionObserver,
- public base::MessagePumpLibevent::Watcher {
+class DEVICE_CORE_EXPORT DeviceMonitorLinux
+ : public base::MessageLoop::DestructionObserver,
+ public base::MessagePumpLibevent::Watcher {
public:
typedef base::Callback<void(udev_device* device)> EnumerateCallback;
@@ -33,12 +35,12 @@ class DeviceMonitorLinux : public base::MessageLoop::DestructionObserver,
virtual ~Observer() {}
virtual void OnDeviceAdded(udev_device* device) = 0;
virtual void OnDeviceRemoved(udev_device* device) = 0;
+ virtual void WillDestroyMonitorMessageLoop() = 0;
};
DeviceMonitorLinux();
static DeviceMonitorLinux* GetInstance();
- static bool HasInstance();
void AddObserver(Observer* observer);
void RemoveObserver(Observer* observer);
« no previous file with comments | « device/core/core.gyp ('k') | device/core/device_monitor_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698