Index: device/sensors/device_sensor_host.cc |
diff --git a/content/browser/device_sensors/device_sensor_host.cc b/device/sensors/device_sensor_host.cc |
similarity index 74% |
rename from content/browser/device_sensors/device_sensor_host.cc |
rename to device/sensors/device_sensor_host.cc |
index 06c898af88cad1e2f2d40b970df586861c1331db..c0260f4e310ee775b5414a1f2ffbb883468e3572 100644 |
--- a/content/browser/device_sensors/device_sensor_host.cc |
+++ b/device/sensors/device_sensor_host.cc |
@@ -2,14 +2,15 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#include "content/browser/device_sensors/device_sensor_host.h" |
+#include "device/sensors/device_sensor_host.h" |
#include "base/memory/ptr_util.h" |
#include "base/message_loop/message_loop.h" |
-#include "content/browser/device_sensors/device_sensor_service.h" |
+#include "device/sensors/device_sensor_export.h" |
+#include "device/sensors/device_sensor_service.h" |
#include "mojo/public/cpp/bindings/strong_binding.h" |
-namespace content { |
+namespace device { |
template <typename MojoInterface, ConsumerType consumer_type> |
void DeviceSensorHost<MojoInterface, consumer_type>::Create( |
@@ -60,13 +61,15 @@ void DeviceSensorHost<MojoInterface, |
DeviceSensorService::GetInstance()->RemoveConsumer(consumer_type); |
} |
-template class DeviceSensorHost<device::mojom::LightSensor, |
- CONSUMER_TYPE_LIGHT>; |
-template class DeviceSensorHost<device::mojom::MotionSensor, |
- CONSUMER_TYPE_MOTION>; |
-template class DeviceSensorHost<device::mojom::OrientationSensor, |
- CONSUMER_TYPE_ORIENTATION>; |
-template class DeviceSensorHost<device::mojom::OrientationAbsoluteSensor, |
- CONSUMER_TYPE_ORIENTATION_ABSOLUTE>; |
+template class DEVICE_SENSOR_EXPORT |
+ DeviceSensorHost<device::mojom::LightSensor, CONSUMER_TYPE_LIGHT>; |
+template class DEVICE_SENSOR_EXPORT |
+ DeviceSensorHost<device::mojom::MotionSensor, CONSUMER_TYPE_MOTION>; |
+template class DEVICE_SENSOR_EXPORT |
+ DeviceSensorHost<device::mojom::OrientationSensor, |
+ CONSUMER_TYPE_ORIENTATION>; |
+template class DEVICE_SENSOR_EXPORT |
+ DeviceSensorHost<device::mojom::OrientationAbsoluteSensor, |
+ CONSUMER_TYPE_ORIENTATION_ABSOLUTE>; |
-} // namespace content |
+} // namespace device |