| 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_H_ | 5 #ifndef DEVICE_GENERIC_SENSOR_PLATFORM_SENSOR_H_ |
| 6 #define DEVICE_GENERIC_SENSOR_PLATFORM_SENSOR_H_ | 6 #define DEVICE_GENERIC_SENSOR_PLATFORM_SENSOR_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <map> | 9 #include <map> |
| 10 | 10 |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
| 13 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
| 14 #include "base/observer_list.h" | 14 #include "base/observer_list.h" |
| 15 #include "base/single_thread_task_runner.h" |
| 15 #include "device/generic_sensor/generic_sensor_export.h" | 16 #include "device/generic_sensor/generic_sensor_export.h" |
| 16 #include "device/generic_sensor/public/cpp/sensor_reading.h" | 17 #include "device/generic_sensor/public/cpp/sensor_reading.h" |
| 17 #include "device/generic_sensor/public/interfaces/sensor.mojom.h" | 18 #include "device/generic_sensor/public/interfaces/sensor.mojom.h" |
| 18 #include "mojo/public/cpp/system/buffer.h" | 19 #include "mojo/public/cpp/system/buffer.h" |
| 19 | 20 |
| 20 namespace device { | 21 namespace device { |
| 21 | 22 |
| 22 class PlatformSensorProvider; | 23 class PlatformSensorProvider; |
| 23 class PlatformSensorConfiguration; | 24 class PlatformSensorConfiguration; |
| 24 | 25 |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 base::ObserverList<Client, true> clients_; | 98 base::ObserverList<Client, true> clients_; |
| 98 ConfigMap config_map_; | 99 ConfigMap config_map_; |
| 99 PlatformSensorProvider* provider_; | 100 PlatformSensorProvider* provider_; |
| 100 base::WeakPtrFactory<PlatformSensor> weak_factory_; | 101 base::WeakPtrFactory<PlatformSensor> weak_factory_; |
| 101 DISALLOW_COPY_AND_ASSIGN(PlatformSensor); | 102 DISALLOW_COPY_AND_ASSIGN(PlatformSensor); |
| 102 }; | 103 }; |
| 103 | 104 |
| 104 } // namespace device | 105 } // namespace device |
| 105 | 106 |
| 106 #endif // DEVICE_GENERIC_SENSOR_PLATFORM_SENSOR_H_ | 107 #endif // DEVICE_GENERIC_SENSOR_PLATFORM_SENSOR_H_ |
| OLD | NEW |