Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1536)

Unified Diff: device/sensors/sensor_service.h

Issue 2078433002: [sensors] Introduce Generic Sensor API interfaces (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cap frequency to 60Hz. Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..f91f4cd36356140ff4443ecf85986b59b97eb1fe
--- /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_provider.mojom.h"
+#include "device/sensors/sensor_export.h"
+
+namespace base {
+class SingleThreadTaskRunner;
+}
+
+namespace device {
+
+// The SensorService allows to bind SensorProvider interface request with
+// internal implementation of SensorProvider.
+class SensorService {
+ 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_SENSORS_SENSOR_SERVICE_H_

Powered by Google App Engine
This is Rietveld 408576698