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

Unified Diff: services/device/device_service.h

Issue 2603553002: Ports VRService to be hosted in the device service.
Patch Set: Ports VRService to be hosted in the device service. Created 3 years, 11 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 e08b6320e60e920a3d7172d42ccd1b5f059b61ec..4a51aae62f8a61d6a913bbd4cd8f6c5327d74d40 100644
--- a/services/device/device_service.h
+++ b/services/device/device_service.h
@@ -8,6 +8,7 @@
#include "base/memory/ref_counted.h"
#include "device/power_monitor/public/interfaces/power_monitor.mojom.h"
#include "device/time_zone_monitor/public/interfaces/time_zone_monitor.mojom.h"
+#include "device/vr/vr_service_impl.h" //nogncheck
#include "mojo/public/cpp/bindings/binding_set.h"
#include "services/service_manager/public/cpp/interface_factory.h"
#include "services/service_manager/public/cpp/service.h"
@@ -22,7 +23,8 @@ std::unique_ptr<service_manager::Service> CreateDeviceService(
class DeviceService
: public service_manager::Service,
public service_manager::InterfaceFactory<mojom::PowerMonitor>,
- public service_manager::InterfaceFactory<mojom::TimeZoneMonitor> {
+ public service_manager::InterfaceFactory<mojom::TimeZoneMonitor>,
+ public service_manager::InterfaceFactory<mojom::VRService> {
public:
DeviceService(scoped_refptr<base::SingleThreadTaskRunner> file_task_runner);
~DeviceService() override;
@@ -41,6 +43,10 @@ class DeviceService
void Create(const service_manager::Identity& remote_identity,
mojom::TimeZoneMonitorRequest request) override;
+ // InterfaceFactory<mojom::VRService>:
+ void Create(const service_manager::Identity& remote_identity,
+ mojom::VRServiceRequest request) override;
+
std::unique_ptr<device::TimeZoneMonitor> time_zone_monitor_;
scoped_refptr<base::SingleThreadTaskRunner> file_task_runner_;

Powered by Google App Engine
This is Rietveld 408576698