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

Side by Side Diff: device/hid/device_monitor_linux.h

Issue 302093009: Linux: Unify udev scopers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « components/storage_monitor/udev_util_linux.cc ('k') | device/hid/hid.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef DEVICE_HID_DEVICE_MONITOR_LINUX_H_ 5 #ifndef DEVICE_HID_DEVICE_MONITOR_LINUX_H_
6 #define DEVICE_HID_DEVICE_MONITOR_LINUX_H_ 6 #define DEVICE_HID_DEVICE_MONITOR_LINUX_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/message_loop/message_loop.h" 13 #include "base/message_loop/message_loop.h"
14 #include "base/message_loop/message_pump_libevent.h" 14 #include "base/message_loop/message_pump_libevent.h"
15 #include "base/observer_list.h" 15 #include "base/observer_list.h"
16 #include "base/threading/thread_checker.h" 16 #include "base/threading/thread_checker.h"
17 #include "device/hid/udev_common.h" 17 #include "device/udev_linux/udev.h"
18 18
19 struct udev_device; 19 struct udev_device;
20 20
21 namespace device { 21 namespace device {
22 22
23 // This class listends for notifications from libudev about 23 // This class listends for notifications from libudev about
24 // connected/disconnected devices. This class is *NOT* thread-safe and 24 // connected/disconnected devices. This class is *NOT* thread-safe and
25 // all methods must be accessed from the FILE thread. 25 // all methods must be accessed from the FILE thread.
26 class DeviceMonitorLinux : public base::MessageLoop::DestructionObserver, 26 class DeviceMonitorLinux : public base::MessageLoop::DestructionObserver,
27 public base::MessagePumpLibevent::Watcher { 27 public base::MessagePumpLibevent::Watcher {
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 ObserverList<Observer> observers_; 66 ObserverList<Observer> observers_;
67 67
68 base::ThreadChecker thread_checker_; 68 base::ThreadChecker thread_checker_;
69 69
70 DISALLOW_COPY_AND_ASSIGN(DeviceMonitorLinux); 70 DISALLOW_COPY_AND_ASSIGN(DeviceMonitorLinux);
71 }; 71 };
72 72
73 } // namespace device 73 } // namespace device
74 74
75 #endif // DEVICE_HID_DEVICE_MONITOR_LINUX_H_ 75 #endif // DEVICE_HID_DEVICE_MONITOR_LINUX_H_
OLDNEW
« no previous file with comments | « components/storage_monitor/udev_util_linux.cc ('k') | device/hid/hid.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698