| 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 "content/browser/device_sensors/device_sensor_host.h" | 5 #include "content/browser/device_sensors/device_sensor_host.h" |
| 6 | 6 |
| 7 #include "base/memory/ptr_util.h" |
| 7 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
| 8 #include "content/browser/device_sensors/device_sensor_service.h" | 9 #include "content/browser/device_sensors/device_sensor_service.h" |
| 9 #include "mojo/public/cpp/bindings/strong_binding.h" | 10 #include "mojo/public/cpp/bindings/strong_binding.h" |
| 10 | 11 |
| 11 namespace content { | 12 namespace content { |
| 12 | 13 |
| 13 template <typename MojoInterface, ConsumerType consumer_type> | 14 template <typename MojoInterface, ConsumerType consumer_type> |
| 14 void DeviceSensorHost<MojoInterface, consumer_type>::Create( | 15 void DeviceSensorHost<MojoInterface, consumer_type>::Create( |
| 15 mojo::InterfaceRequest<MojoInterface> request) { | 16 mojo::InterfaceRequest<MojoInterface> request) { |
| 16 mojo::MakeStrongBinding( | 17 mojo::MakeStrongBinding( |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 template class DeviceSensorHost<device::mojom::LightSensor, | 63 template class DeviceSensorHost<device::mojom::LightSensor, |
| 63 CONSUMER_TYPE_LIGHT>; | 64 CONSUMER_TYPE_LIGHT>; |
| 64 template class DeviceSensorHost<device::mojom::MotionSensor, | 65 template class DeviceSensorHost<device::mojom::MotionSensor, |
| 65 CONSUMER_TYPE_MOTION>; | 66 CONSUMER_TYPE_MOTION>; |
| 66 template class DeviceSensorHost<device::mojom::OrientationSensor, | 67 template class DeviceSensorHost<device::mojom::OrientationSensor, |
| 67 CONSUMER_TYPE_ORIENTATION>; | 68 CONSUMER_TYPE_ORIENTATION>; |
| 68 template class DeviceSensorHost<device::mojom::OrientationAbsoluteSensor, | 69 template class DeviceSensorHost<device::mojom::OrientationAbsoluteSensor, |
| 69 CONSUMER_TYPE_ORIENTATION_ABSOLUTE>; | 70 CONSUMER_TYPE_ORIENTATION_ABSOLUTE>; |
| 70 | 71 |
| 71 } // namespace content | 72 } // namespace content |
| OLD | NEW |