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_SENSOR_PROVIDER_IMPL_H_ | 5 #ifndef DEVICE_GENERIC_SENSOR_SENSOR_PROVIDER_IMPL_H_ |
6 #define DEVICE_GENERIC_SENSOR_SENSOR_PROVIDER_IMPL_H_ | 6 #define DEVICE_GENERIC_SENSOR_SENSOR_PROVIDER_IMPL_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/single_thread_task_runner.h" |
9 #include "device/generic_sensor/generic_sensor_export.h" | 10 #include "device/generic_sensor/generic_sensor_export.h" |
10 #include "device/generic_sensor/public/interfaces/sensor_provider.mojom.h" | 11 #include "device/generic_sensor/public/interfaces/sensor_provider.mojom.h" |
11 | 12 |
12 namespace device { | 13 namespace device { |
13 | 14 |
14 class PlatformSensorProvider; | 15 class PlatformSensorProvider; |
15 class PlatformSensor; | 16 class PlatformSensor; |
16 | 17 |
17 // Implementation of SensorProvider mojo interface. | 18 // Implementation of SensorProvider mojo interface. |
18 // Uses PlatformSensorProvider singleton to create platform specific instances | 19 // Uses PlatformSensorProvider singleton to create platform specific instances |
(...skipping 24 matching lines...) Expand all Loading... |
43 | 44 |
44 PlatformSensorProvider* provider_; | 45 PlatformSensorProvider* provider_; |
45 base::WeakPtrFactory<SensorProviderImpl> weak_ptr_factory_; | 46 base::WeakPtrFactory<SensorProviderImpl> weak_ptr_factory_; |
46 | 47 |
47 DISALLOW_COPY_AND_ASSIGN(SensorProviderImpl); | 48 DISALLOW_COPY_AND_ASSIGN(SensorProviderImpl); |
48 }; | 49 }; |
49 | 50 |
50 } // namespace device | 51 } // namespace device |
51 | 52 |
52 #endif // DEVICE_GENERIC_SENSOR_SENSOR_PROVIDER_IMPL_H_ | 53 #endif // DEVICE_GENERIC_SENSOR_SENSOR_PROVIDER_IMPL_H_ |
OLD | NEW |