| 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 CONTENT_BROWSER_DEVICE_SENSORS_DEVICE_SENSOR_HOST_H_ | 5 #ifndef CONTENT_BROWSER_DEVICE_SENSORS_DEVICE_SENSOR_HOST_H_ |
| 6 #define CONTENT_BROWSER_DEVICE_SENSORS_DEVICE_SENSOR_HOST_H_ | 6 #define CONTENT_BROWSER_DEVICE_SENSORS_DEVICE_SENSOR_HOST_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/shared_memory.h" | 9 #include "base/memory/shared_memory.h" |
| 10 #include "base/threading/thread_checker.h" |
| 10 #include "content/browser/device_sensors/device_sensors_consts.h" | 11 #include "content/browser/device_sensors/device_sensors_consts.h" |
| 11 #include "device/sensors/public/interfaces/light.mojom.h" | 12 #include "device/sensors/public/interfaces/light.mojom.h" |
| 12 #include "device/sensors/public/interfaces/motion.mojom.h" | 13 #include "device/sensors/public/interfaces/motion.mojom.h" |
| 13 #include "device/sensors/public/interfaces/orientation.mojom.h" | 14 #include "device/sensors/public/interfaces/orientation.mojom.h" |
| 14 #include "mojo/public/cpp/bindings/interface_request.h" | 15 #include "mojo/public/cpp/bindings/interface_request.h" |
| 15 | 16 |
| 16 namespace content { | 17 namespace content { |
| 17 | 18 |
| 18 // A base class for device sensor related mojo interface implementations. | 19 // A base class for device sensor related mojo interface implementations. |
| 19 template <typename MojoInterface, ConsumerType consumer_type> | 20 template <typename MojoInterface, ConsumerType consumer_type> |
| (...skipping 24 matching lines...) Expand all Loading... |
| 44 DeviceSensorHost<device::mojom::MotionSensor, CONSUMER_TYPE_MOTION>; | 45 DeviceSensorHost<device::mojom::MotionSensor, CONSUMER_TYPE_MOTION>; |
| 45 using DeviceOrientationHost = DeviceSensorHost<device::mojom::OrientationSensor, | 46 using DeviceOrientationHost = DeviceSensorHost<device::mojom::OrientationSensor, |
| 46 CONSUMER_TYPE_ORIENTATION>; | 47 CONSUMER_TYPE_ORIENTATION>; |
| 47 using DeviceOrientationAbsoluteHost = | 48 using DeviceOrientationAbsoluteHost = |
| 48 DeviceSensorHost<device::mojom::OrientationAbsoluteSensor, | 49 DeviceSensorHost<device::mojom::OrientationAbsoluteSensor, |
| 49 CONSUMER_TYPE_ORIENTATION_ABSOLUTE>; | 50 CONSUMER_TYPE_ORIENTATION_ABSOLUTE>; |
| 50 | 51 |
| 51 } // namespace content | 52 } // namespace content |
| 52 | 53 |
| 53 #endif // CONTENT_BROWSER_DEVICE_SENSORS_DEVICE_SENSOR_HOST_H_ | 54 #endif // CONTENT_BROWSER_DEVICE_SENSORS_DEVICE_SENSOR_HOST_H_ |
| OLD | NEW |