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_WIN_H_ | 5 #ifndef DEVICE_GENERIC_SENSOR_PLATFORM_SENSOR_READER_WIN_H_ |
6 #define DEVICE_GENERIC_SENSOR_PLATFORM_SENSOR_READER_WIN_H_ | 6 #define DEVICE_GENERIC_SENSOR_PLATFORM_SENSOR_READER_WIN_H_ |
7 | 7 |
8 #include <SensorsApi.h> | 8 #include <SensorsApi.h> |
9 | 9 |
10 #include "base/win/scoped_comptr.h" | 10 #include "base/win/scoped_comptr.h" |
11 #include "device/generic_sensor/public/interfaces/sensor.mojom.h" | 11 #include "device/generic_sensor/public/interfaces/sensor.mojom.h" |
12 | 12 |
| 13 namespace base { |
| 14 class SingleThreadTaskRunner; |
| 15 } |
| 16 |
13 namespace device { | 17 namespace device { |
14 | 18 |
15 class PlatformSensorConfiguration; | 19 class PlatformSensorConfiguration; |
16 struct ReaderInitParams; | 20 struct ReaderInitParams; |
17 struct SensorReading; | 21 struct SensorReading; |
18 | 22 |
19 // Generic class that uses ISensor interface to fetch sensor data. Used | 23 // Generic class that uses ISensor interface to fetch sensor data. Used |
20 // by PlatformSensorWin and delivers notifications via Client interface. | 24 // by PlatformSensorWin and delivers notifications via Client interface. |
21 // Instances of this class must be created and destructed on the same thread. | 25 // Instances of this class must be created and destructed on the same thread. |
22 class PlatformSensorReaderWin { | 26 class PlatformSensorReaderWin { |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 base::win::ScopedComPtr<ISensor> sensor_; | 77 base::win::ScopedComPtr<ISensor> sensor_; |
74 scoped_refptr<EventListener> event_listener_; | 78 scoped_refptr<EventListener> event_listener_; |
75 base::WeakPtrFactory<PlatformSensorReaderWin> weak_factory_; | 79 base::WeakPtrFactory<PlatformSensorReaderWin> weak_factory_; |
76 | 80 |
77 DISALLOW_COPY_AND_ASSIGN(PlatformSensorReaderWin); | 81 DISALLOW_COPY_AND_ASSIGN(PlatformSensorReaderWin); |
78 }; | 82 }; |
79 | 83 |
80 } // namespace device | 84 } // namespace device |
81 | 85 |
82 #endif // DEVICE_GENERIC_SENSOR_PLATFORM_SENSOR_READER_WIN_H_ | 86 #endif // DEVICE_GENERIC_SENSOR_PLATFORM_SENSOR_READER_WIN_H_ |
OLD | NEW |