| 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_PROVIDER_MAC_H_ | 5 #ifndef SERVICES_DEVICE_GENERIC_SENSOR_PLATFORM_SENSOR_PROVIDER_MAC_H_ |
| 6 #define DEVICE_GENERIC_SENSOR_PLATFORM_SENSOR_PROVIDER_MAC_H_ | 6 #define SERVICES_DEVICE_GENERIC_SENSOR_PLATFORM_SENSOR_PROVIDER_MAC_H_ |
| 7 | 7 |
| 8 #include "device/generic_sensor/platform_sensor_provider.h" | 8 #include "services/device/generic_sensor/platform_sensor_provider.h" |
| 9 | 9 |
| 10 namespace device { | 10 namespace device { |
| 11 | 11 |
| 12 class PlatformSensorProviderMac : public PlatformSensorProvider { | 12 class PlatformSensorProviderMac : public PlatformSensorProvider { |
| 13 public: | 13 public: |
| 14 PlatformSensorProviderMac(); | 14 PlatformSensorProviderMac(); |
| 15 ~PlatformSensorProviderMac() override; | 15 ~PlatformSensorProviderMac() override; |
| 16 | 16 |
| 17 static PlatformSensorProviderMac* GetInstance(); | 17 static PlatformSensorProviderMac* GetInstance(); |
| 18 | 18 |
| 19 protected: | 19 protected: |
| 20 void CreateSensorInternal(mojom::SensorType type, | 20 void CreateSensorInternal(mojom::SensorType type, |
| 21 mojo::ScopedSharedBufferMapping mapping, | 21 mojo::ScopedSharedBufferMapping mapping, |
| 22 const CreateSensorCallback& callback) override; | 22 const CreateSensorCallback& callback) override; |
| 23 | 23 |
| 24 private: | 24 private: |
| 25 DISALLOW_COPY_AND_ASSIGN(PlatformSensorProviderMac); | 25 DISALLOW_COPY_AND_ASSIGN(PlatformSensorProviderMac); |
| 26 }; | 26 }; |
| 27 | 27 |
| 28 } // namespace device | 28 } // namespace device |
| 29 | 29 |
| 30 #endif // DEVICE_GENERIC_SENSOR_PLATFORM_SENSOR_PROVIDER_MAC_H_ | 30 #endif // SERVICES_DEVICE_GENERIC_SENSOR_PLATFORM_SENSOR_PROVIDER_MAC_H_ |
| OLD | NEW |