OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef DEVICE_GENERIC_SENSOR_PLATFORM_SENSOR_PROVIDER_MAC_H_ |
| 6 #define DEVICE_GENERIC_SENSOR_PLATFORM_SENSOR_PROVIDER_MAC_H_ |
| 7 |
| 8 #include "device/generic_sensor/platform_sensor_provider.h" |
| 9 |
| 10 namespace base { |
| 11 class Thread; |
| 12 } |
| 13 |
| 14 namespace device { |
| 15 |
| 16 class PlatformSensorProviderMac : public PlatformSensorProvider { |
| 17 public: |
| 18 PlatformSensorProviderMac(); |
| 19 ~PlatformSensorProviderMac() override; |
| 20 |
| 21 static PlatformSensorProviderMac* GetInstance(); |
| 22 |
| 23 protected: |
| 24 scoped_refptr<PlatformSensor> CreateSensorInternal( |
| 25 mojom::SensorType type, |
| 26 mojo::ScopedSharedBufferMapping mapping, |
| 27 uint64_t buffer_size) override; |
| 28 |
| 29 private: |
| 30 std::unique_ptr<base::Thread> polling_thread_; |
| 31 DISALLOW_COPY_AND_ASSIGN(PlatformSensorProviderMac); |
| 32 }; |
| 33 |
| 34 } // namespace device |
| 35 |
| 36 #endif // DEVICE_GENERIC_SENSOR_PLATFORM_SENSOR_PROVIDER_MAC_H_ |
OLD | NEW |