Chromium Code Reviews| Index: device/generic_sensor/sensor_service.h |
| diff --git a/device/generic_sensor/sensor_service.h b/device/generic_sensor/sensor_service.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..36d8214ca5b9d8fec1280d5d1ffd05c8e9e47914 |
| --- /dev/null |
| +++ b/device/generic_sensor/sensor_service.h |
| @@ -0,0 +1,33 @@ |
| +// Copyright 2016 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef DEVICE_GENERIC_SENSOR_SENSOR_SERVICE_H_ |
| +#define DEVICE_GENERIC_SENSOR_SENSOR_SERVICE_H_ |
| + |
| +#include "base/macros.h" |
| +#include "base/memory/ref_counted.h" |
| +#include "device/generic_sensor/public/interfaces/sensor_provider.mojom.h" |
| +#include "device/generic_sensor/sensor_export.h" |
| + |
| +namespace base { |
| +class SingleThreadTaskRunner; |
| +} |
| + |
| +namespace device { |
| + |
| +// The SensorService binds a request for the SensorProvider interface to |
| +// an internal implementation of SensorProvider. |
| +class SensorService { |
|
Ken Rockot(use gerrit already)
2016/08/18 19:36:00
I don't think we need SensorService or this h/cc f
Mikhail
2016/08/19 09:29:56
Done.
|
| + public: |
| + DEVICE_SENSOR_EXPORT static void BindRequest( |
| + const scoped_refptr<base::SingleThreadTaskRunner>& task_runner, |
| + mojo::InterfaceRequest<mojom::SensorProvider> request); |
| + |
| + private: |
| + DISALLOW_COPY_AND_ASSIGN(SensorService); |
| +}; |
| + |
| +} // namespace device |
| + |
| +#endif // DEVICE_GENERIC_SENSOR_SENSOR_SERVICE_H_ |