OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // This class is used to detect device change and notify base::SystemMonitor | 5 // This class is used to detect device change and notify base::SystemMonitor |
6 // on Linux. | 6 // on Linux. |
7 | 7 |
8 #ifndef CONTENT_BROWSER_DEVICE_MONITOR_LINUX_H_ | 8 #ifndef CONTENT_BROWSER_DEVICE_MONITOR_LINUX_H_ |
9 #define CONTENT_BROWSER_DEVICE_MONITOR_LINUX_H_ | 9 #define CONTENT_BROWSER_DEVICE_MONITOR_LINUX_H_ |
10 | 10 |
11 #if !defined(USE_UDEV) | |
rjkroege
2013/11/15 23:16:31
my very badly worded comment from before remains.
Mostyn Bramley-Moore
2013/11/15 23:49:43
Done.
| |
12 #error USE_UDEV must be defined. | |
13 #endif | |
14 | |
11 #include "base/basictypes.h" | 15 #include "base/basictypes.h" |
12 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
13 #include "base/message_loop/message_loop.h" | 17 #include "base/message_loop/message_loop.h" |
14 | 18 |
15 extern "C" { | 19 extern "C" { |
16 struct udev_device; | 20 struct udev_device; |
17 } | 21 } |
18 | 22 |
19 namespace content { | 23 namespace content { |
20 | 24 |
(...skipping 14 matching lines...) Expand all Loading... | |
35 void OnDevicesChanged(udev_device* device); | 39 void OnDevicesChanged(udev_device* device); |
36 | 40 |
37 scoped_ptr<UdevLinux> udev_; | 41 scoped_ptr<UdevLinux> udev_; |
38 | 42 |
39 DISALLOW_COPY_AND_ASSIGN(DeviceMonitorLinux); | 43 DISALLOW_COPY_AND_ASSIGN(DeviceMonitorLinux); |
40 }; | 44 }; |
41 | 45 |
42 } // namespace content | 46 } // namespace content |
43 | 47 |
44 #endif // CONTENT_BROWSER_DEVICE_MONITOR_LINUX_H_ | 48 #endif // CONTENT_BROWSER_DEVICE_MONITOR_LINUX_H_ |
OLD | NEW |