Index: device/sensors/sensor_service.h |
diff --git a/device/sensors/sensor_service.h b/device/sensors/sensor_service.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..4064eecb91f99e47992ab6a0366b37ed6d8b5ab7 |
--- /dev/null |
+++ b/device/sensors/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_SENSORS_SENSOR_SERVICE_H_ |
+#define DEVICE_SENSORS_SENSOR_SERVICE_H_ |
+ |
+#include "base/macros.h" |
+#include "base/memory/ref_counted.h" |
+#include "device/sensors/public/interfaces/sensor_factory.mojom.h" |
+#include "device/sensors/sensor_export.h" |
+ |
+namespace base { |
+class SingleThreadTaskRunner; |
+} |
+ |
+namespace device { |
+ |
+// The SensorService allows to bind SensorFactory interface request with |
+// internal implementation of SensorFactory. |
+class SensorService { |
+ public: |
+ DEVICE_SENSOR_EXPORT static void BindRequest( |
+ const scoped_refptr<base::SingleThreadTaskRunner>& task_runner, |
+ mojo::InterfaceRequest<sensors::SensorFactory> request); |
+ |
+ private: |
+ DISALLOW_COPY_AND_ASSIGN(SensorService); |
+}; |
+ |
+} // namespace device |
+ |
+#endif // DEVICE_SENSORS_SENSOR_SERVICE_H_ |