| 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 #include "services/device/device_service.h" | 5 #include "services/device/device_service.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/feature_list.h" | 10 #include "base/feature_list.h" |
| 11 #include "base/memory/ptr_util.h" | 11 #include "base/memory/ptr_util.h" |
| 12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
| 13 #include "base/single_thread_task_runner.h" | 13 #include "base/single_thread_task_runner.h" |
| 14 #include "base/threading/thread_task_runner_handle.h" | 14 #include "base/threading/thread_task_runner_handle.h" |
| 15 #include "device/battery/battery_monitor.mojom.h" | 15 #include "device/battery/battery_monitor.mojom.h" |
| 16 #include "device/battery/battery_monitor_impl.h" | 16 #include "device/battery/battery_monitor_impl.h" |
| 17 #include "device/battery/battery_status_service.h" | 17 #include "device/battery/battery_status_service.h" |
| 18 #include "device/generic_sensor/sensor_provider_impl.h" | 18 #include "device/generic_sensor/sensor_provider_impl.h" |
| 19 #include "device/sensors/device_sensor_host.h" | |
| 20 #include "device/wake_lock/wake_lock_context_provider.h" | 19 #include "device/wake_lock/wake_lock_context_provider.h" |
| 21 #include "mojo/public/cpp/system/message_pipe.h" | 20 #include "mojo/public/cpp/system/message_pipe.h" |
| 22 #include "services/device/fingerprint/fingerprint.h" | 21 #include "services/device/fingerprint/fingerprint.h" |
| 23 #include "services/device/power_monitor/power_monitor_message_broadcaster.h" | 22 #include "services/device/power_monitor/power_monitor_message_broadcaster.h" |
| 24 #include "services/device/public/cpp/device_features.h" | 23 #include "services/device/public/cpp/device_features.h" |
| 24 #include "services/device/sensors/device_sensor_host.h" |
| 25 #include "services/device/time_zone_monitor/time_zone_monitor.h" | 25 #include "services/device/time_zone_monitor/time_zone_monitor.h" |
| 26 #include "services/service_manager/public/cpp/interface_registry.h" | 26 #include "services/service_manager/public/cpp/interface_registry.h" |
| 27 #include "services/service_manager/public/cpp/service_info.h" | 27 #include "services/service_manager/public/cpp/service_info.h" |
| 28 #include "ui/gfx/native_widget_types.h" | 28 #include "ui/gfx/native_widget_types.h" |
| 29 | 29 |
| 30 #if defined(OS_ANDROID) | 30 #if defined(OS_ANDROID) |
| 31 #include "base/android/context_utils.h" | 31 #include "base/android/context_utils.h" |
| 32 #include "base/android/jni_android.h" | 32 #include "base/android/jni_android.h" |
| 33 #include "jni/InterfaceRegistrar_jni.h" | 33 #include "jni/InterfaceRegistrar_jni.h" |
| 34 #include "services/device/android/register_jni.h" | 34 #include "services/device/android/register_jni.h" |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 java_interface_provider_.Bind(std::move(provider)); | 255 java_interface_provider_.Bind(std::move(provider)); |
| 256 | 256 |
| 257 java_interface_provider_initialized_ = true; | 257 java_interface_provider_initialized_ = true; |
| 258 } | 258 } |
| 259 | 259 |
| 260 return &java_interface_provider_; | 260 return &java_interface_provider_; |
| 261 } | 261 } |
| 262 #endif | 262 #endif |
| 263 | 263 |
| 264 } // namespace device | 264 } // namespace device |
| OLD | NEW |