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_SENSORS_SENSOR_SERVICE_H_ |
| 6 #define DEVICE_SENSORS_SENSOR_SERVICE_H_ |
| 7 |
| 8 #include "base/macros.h" |
| 9 #include "base/memory/ref_counted.h" |
| 10 #include "device/sensors/public/interfaces/sensor_factory.mojom.h" |
| 11 #include "device/sensors/sensor_export.h" |
| 12 |
| 13 namespace base { |
| 14 class SingleThreadTaskRunner; |
| 15 } |
| 16 |
| 17 namespace device { |
| 18 |
| 19 // The SensorService allows to bind SensorFactory interface request with |
| 20 // internal implementation of SensorFactory. |
| 21 class SensorService { |
| 22 public: |
| 23 DEVICE_SENSOR_EXPORT static void BindRequest( |
| 24 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner, |
| 25 mojo::InterfaceRequest<sensors::SensorFactory> request); |
| 26 |
| 27 private: |
| 28 DISALLOW_COPY_AND_ASSIGN(SensorService); |
| 29 }; |
| 30 |
| 31 } // namespace device |
| 32 |
| 33 #endif // DEVICE_SENSORS_SENSOR_SERVICE_H_ |
OLD | NEW |