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

Unified Diff: services/device/device_service.h

Issue 2698083007: Port device_generic_sensor to be hosted in Device Service. (Closed)
Patch Set: code rebase Created 3 years, 9 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: services/device/device_service.h
diff --git a/services/device/device_service.h b/services/device/device_service.h
index c4ed1276751911e1f61d33dbedad2bdc477e92d3..061a2e5e96e09b43cd432b8c51f157a0547a3eac 100644
--- a/services/device/device_service.h
+++ b/services/device/device_service.h
@@ -7,6 +7,7 @@
#include "base/memory/ref_counted.h"
#include "device/battery/battery_monitor.mojom.h"
+#include "device/generic_sensor/public/interfaces/sensor_provider.mojom.h"
#include "device/screen_orientation/public/interfaces/screen_orientation.mojom.h"
#include "device/sensors/public/interfaces/light.mojom.h"
#include "device/sensors/public/interfaces/motion.mojom.h"
@@ -59,6 +60,7 @@ class DeviceService
public service_manager::InterfaceFactory<mojom::PowerMonitor>,
public service_manager::InterfaceFactory<
mojom::ScreenOrientationListener>,
+ public service_manager::InterfaceFactory<mojom::SensorProvider>,
public service_manager::InterfaceFactory<mojom::TimeZoneMonitor>,
public service_manager::InterfaceFactory<mojom::WakeLockContextProvider> {
public:
@@ -115,6 +117,10 @@ class DeviceService
void Create(const service_manager::Identity& remote_identity,
mojom::ScreenOrientationListenerRequest request) override;
+ // InterfaceFactory<mojom::SensorProvider>:
+ void Create(const service_manager::Identity& remote_identity,
+ mojom::SensorProviderRequest request) override;
+
// InterfaceFactory<mojom::TimeZoneMonitor>:
void Create(const service_manager::Identity& remote_identity,
mojom::TimeZoneMonitorRequest request) override;

Powered by Google App Engine
This is Rietveld 408576698