| 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_PLATFORM_SENSOR_READER_LINUX_H_ | 5 #ifndef SERVICES_DEVICE_GENERIC_SENSOR_PLATFORM_SENSOR_READER_LINUX_H_ |
| 6 #define DEVICE_GENERIC_SENSOR_PLATFORM_SENSOR_READER_LINUX_H_ | 6 #define SERVICES_DEVICE_GENERIC_SENSOR_PLATFORM_SENSOR_READER_LINUX_H_ |
| 7 | 7 |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
| 11 #include "base/threading/thread_checker.h" | 11 #include "base/threading/thread_checker.h" |
| 12 #include "device/generic_sensor/generic_sensor_export.h" | |
| 13 | 12 |
| 14 namespace base { | 13 namespace base { |
| 15 class SingleThreadTaskRunner; | 14 class SingleThreadTaskRunner; |
| 16 } | 15 } |
| 17 | 16 |
| 18 namespace device { | 17 namespace device { |
| 19 | 18 |
| 20 class PlatformSensorConfiguration; | 19 class PlatformSensorConfiguration; |
| 21 class PlatformSensorLinux; | 20 class PlatformSensorLinux; |
| 22 struct SensorInfoLinux; | 21 struct SensorInfoLinux; |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; | 62 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; |
| 64 | 63 |
| 65 // Indicates if reading is active. | 64 // Indicates if reading is active. |
| 66 bool is_reading_active_; | 65 bool is_reading_active_; |
| 67 | 66 |
| 68 DISALLOW_COPY_AND_ASSIGN(SensorReader); | 67 DISALLOW_COPY_AND_ASSIGN(SensorReader); |
| 69 }; | 68 }; |
| 70 | 69 |
| 71 } // namespace device | 70 } // namespace device |
| 72 | 71 |
| 73 #endif // DEVICE_GENERIC_SENSOR_PLATFORM_SENSOR_READER_LINUX_H_ | 72 #endif // SERVICES_DEVICE_GENERIC_SENSOR_PLATFORM_SENSOR_READER_LINUX_H_ |
| OLD | NEW |