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

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, 8 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
« no previous file with comments | « services/device/BUILD.gn ('k') | services/device/device_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/device/device_service.h
diff --git a/services/device/device_service.h b/services/device/device_service.h
index 5b66d3e48e3e308dab30e69bdf84cfd81ce9227b..cd38c23600321e04beb869169ec5dd46547dca17 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"
@@ -60,6 +61,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:
@@ -117,6 +119,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;
« no previous file with comments | « services/device/BUILD.gn ('k') | services/device/device_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698