OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_GENERIC_SENSOR_PUBLIC_PLATFORM_SENSOR_PROVIDER_LINUX_H_ | 5 #ifndef DEVICE_GENERIC_SENSOR_PUBLIC_PLATFORM_SENSOR_PROVIDER_LINUX_H_ |
6 #define DEVICE_GENERIC_SENSOR_PUBLIC_PLATFORM_SENSOR_PROVIDER_LINUX_H_ | 6 #define DEVICE_GENERIC_SENSOR_PUBLIC_PLATFORM_SENSOR_PROVIDER_LINUX_H_ |
7 | 7 |
8 #include "device/generic_sensor/platform_sensor_provider.h" | 8 #include "device/generic_sensor/platform_sensor_provider.h" |
9 | 9 |
| 10 #include "base/single_thread_task_runner.h" |
10 #include "device/generic_sensor/generic_sensor_export.h" | 11 #include "device/generic_sensor/generic_sensor_export.h" |
11 #include "device/generic_sensor/linux/sensor_device_manager.h" | 12 #include "device/generic_sensor/linux/sensor_device_manager.h" |
12 | 13 |
13 namespace base { | 14 namespace base { |
14 template <typename T> | 15 template <typename T> |
15 struct DefaultSingletonTraits; | 16 struct DefaultSingletonTraits; |
16 class Thread; | 17 class Thread; |
17 } | 18 } |
18 | 19 |
19 namespace device { | 20 namespace device { |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 // provider to stop a polling thread and passed to a manager that | 113 // provider to stop a polling thread and passed to a manager that |
113 // runs a linux device monitor service on this task runner. | 114 // runs a linux device monitor service on this task runner. |
114 scoped_refptr<base::SingleThreadTaskRunner> file_task_runner_; | 115 scoped_refptr<base::SingleThreadTaskRunner> file_task_runner_; |
115 | 116 |
116 DISALLOW_COPY_AND_ASSIGN(PlatformSensorProviderLinux); | 117 DISALLOW_COPY_AND_ASSIGN(PlatformSensorProviderLinux); |
117 }; | 118 }; |
118 | 119 |
119 } // namespace device | 120 } // namespace device |
120 | 121 |
121 #endif // DEVICE_GENERIC_SENSOR_PUBLIC_PLATFORM_SENSOR_PROVIDER_LINUX_H_ | 122 #endif // DEVICE_GENERIC_SENSOR_PUBLIC_PLATFORM_SENSOR_PROVIDER_LINUX_H_ |
OLD | NEW |