OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef SERVICES_DEVICE_DEVICE_SERVICE_H_ | 5 #ifndef SERVICES_DEVICE_DEVICE_SERVICE_H_ |
6 #define SERVICES_DEVICE_DEVICE_SERVICE_H_ | 6 #define SERVICES_DEVICE_DEVICE_SERVICE_H_ |
7 | 7 |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "device/generic_sensor/public/interfaces/sensor_provider.mojom.h" | 9 #include "device/generic_sensor/public/interfaces/sensor_provider.mojom.h" |
10 #include "device/nfc/nfc_provider.mojom.h" | 10 #include "device/nfc/nfc_provider.mojom.h" |
11 #include "device/screen_orientation/public/interfaces/screen_orientation.mojom.h
" | 11 #include "device/screen_orientation/public/interfaces/screen_orientation.mojom.h
" |
12 #include "device/sensors/public/interfaces/motion.mojom.h" | |
13 #include "device/sensors/public/interfaces/orientation.mojom.h" | |
14 #include "device/wake_lock/public/interfaces/wake_lock_provider.mojom.h" | 12 #include "device/wake_lock/public/interfaces/wake_lock_provider.mojom.h" |
15 #include "device/wake_lock/wake_lock_service_context.h" | 13 #include "device/wake_lock/wake_lock_service_context.h" |
16 #include "mojo/public/cpp/bindings/binding_set.h" | 14 #include "mojo/public/cpp/bindings/binding_set.h" |
17 #include "services/device/public/interfaces/battery_monitor.mojom.h" | 15 #include "services/device/public/interfaces/battery_monitor.mojom.h" |
18 #include "services/device/public/interfaces/fingerprint.mojom.h" | 16 #include "services/device/public/interfaces/fingerprint.mojom.h" |
19 #include "services/device/public/interfaces/power_monitor.mojom.h" | 17 #include "services/device/public/interfaces/power_monitor.mojom.h" |
20 #include "services/device/public/interfaces/time_zone_monitor.mojom.h" | 18 #include "services/device/public/interfaces/time_zone_monitor.mojom.h" |
21 #include "services/device/public/interfaces/vibration_manager.mojom.h" | 19 #include "services/device/public/interfaces/vibration_manager.mojom.h" |
22 #include "services/service_manager/public/cpp/binder_registry.h" | 20 #include "services/service_manager/public/cpp/binder_registry.h" |
23 #include "services/service_manager/public/cpp/interface_provider.h" | 21 #include "services/service_manager/public/cpp/interface_provider.h" |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 // service_manager::Service: | 66 // service_manager::Service: |
69 void OnStart() override; | 67 void OnStart() override; |
70 void OnBindInterface(const service_manager::BindSourceInfo& source_info, | 68 void OnBindInterface(const service_manager::BindSourceInfo& source_info, |
71 const std::string& interface_name, | 69 const std::string& interface_name, |
72 mojo::ScopedMessagePipeHandle interface_pipe) override; | 70 mojo::ScopedMessagePipeHandle interface_pipe) override; |
73 | 71 |
74 void BindFingerprintRequest( | 72 void BindFingerprintRequest( |
75 const service_manager::BindSourceInfo& source_info, | 73 const service_manager::BindSourceInfo& source_info, |
76 mojom::FingerprintRequest request); | 74 mojom::FingerprintRequest request); |
77 | 75 |
78 void BindMotionSensorRequest( | |
79 const service_manager::BindSourceInfo& source_info, | |
80 mojom::MotionSensorRequest request); | |
81 | |
82 void BindOrientationSensorRequest( | |
83 const service_manager::BindSourceInfo& source_info, | |
84 mojom::OrientationSensorRequest request); | |
85 | |
86 void BindOrientationAbsoluteSensorRequest( | |
87 const service_manager::BindSourceInfo& source_info, | |
88 mojom::OrientationAbsoluteSensorRequest request); | |
89 | |
90 #if !defined(OS_ANDROID) | 76 #if !defined(OS_ANDROID) |
91 void BindBatteryMonitorRequest( | 77 void BindBatteryMonitorRequest( |
92 const service_manager::BindSourceInfo& source_info, | 78 const service_manager::BindSourceInfo& source_info, |
93 mojom::BatteryMonitorRequest request); | 79 mojom::BatteryMonitorRequest request); |
94 void BindNFCProviderRequest( | 80 void BindNFCProviderRequest( |
95 const service_manager::BindSourceInfo& source_info, | 81 const service_manager::BindSourceInfo& source_info, |
96 nfc::mojom::NFCProviderRequest request); | 82 nfc::mojom::NFCProviderRequest request); |
97 void BindVibrationManagerRequest( | 83 void BindVibrationManagerRequest( |
98 const service_manager::BindSourceInfo& source_info, | 84 const service_manager::BindSourceInfo& source_info, |
99 mojom::VibrationManagerRequest request); | 85 mojom::VibrationManagerRequest request); |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 #endif | 127 #endif |
142 | 128 |
143 service_manager::BinderRegistry registry_; | 129 service_manager::BinderRegistry registry_; |
144 | 130 |
145 DISALLOW_COPY_AND_ASSIGN(DeviceService); | 131 DISALLOW_COPY_AND_ASSIGN(DeviceService); |
146 }; | 132 }; |
147 | 133 |
148 } // namespace device | 134 } // namespace device |
149 | 135 |
150 #endif // SERVICES_DEVICE_DEVICE_SERVICE_H_ | 136 #endif // SERVICES_DEVICE_DEVICE_SERVICE_H_ |
OLD | NEW |