| Index: device/device_sensors/device_inertial_sensor_service.h
|
| diff --git a/content/browser/device_sensors/device_inertial_sensor_service.h b/device/device_sensors/device_inertial_sensor_service.h
|
| similarity index 78%
|
| rename from content/browser/device_sensors/device_inertial_sensor_service.h
|
| rename to device/device_sensors/device_inertial_sensor_service.h
|
| index c372903ad306ec00e27fb50c6870ac429187d132..a51cab8952a923997d4b2ab4c4c1a67aeb554246 100644
|
| --- a/content/browser/device_sensors/device_inertial_sensor_service.h
|
| +++ b/device/device_sensors/device_inertial_sensor_service.h
|
| @@ -2,8 +2,8 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#ifndef CONTENT_BROWSER_DEVICE_SENSORS_DEVICE_INERTIAL_SENSOR_SERVICE_H_
|
| -#define CONTENT_BROWSER_DEVICE_SENSORS_DEVICE_INERTIAL_SENSOR_SERVICE_H_
|
| +#ifndef DEVICE_DEVICE_SENSORS_DEVICE_INERTIAL_SENSOR_SERVICE_H_
|
| +#define DEVICE_DEVICE_SENSORS_DEVICE_INERTIAL_SENSOR_SERVICE_H_
|
|
|
| #include "base/basictypes.h"
|
| #include "base/callback_forward.h"
|
| @@ -11,17 +11,17 @@
|
| #include "base/memory/shared_memory.h"
|
| #include "base/memory/singleton.h"
|
| #include "base/threading/thread_checker.h"
|
| -#include "content/browser/device_sensors/inertial_sensor_consts.h"
|
| -#include "content/common/content_export.h"
|
| +#include "device/device_sensors/device_sensors_export.h"
|
| +#include "device/device_sensors/inertial_sensor_consts.h"
|
|
|
| -namespace content {
|
| +namespace device {
|
|
|
| class DataFetcherSharedMemory;
|
|
|
| // Owns the data fetcher for Device Motion and Orientation and keeps track of
|
| // the number of consumers currently using the data. The data fetcher is stopped
|
| // when there are no consumers.
|
| -class CONTENT_EXPORT DeviceInertialSensorService {
|
| +class DEVICE_SENSORS_EXPORT DeviceInertialSensorService {
|
| public:
|
| // Returns the DeviceInertialSensorService singleton.
|
| static DeviceInertialSensorService* GetInstance();
|
| @@ -38,7 +38,8 @@ class CONTENT_EXPORT DeviceInertialSensorService {
|
| // Returns the shared memory handle of the device motion data duplicated
|
| // into the given process.
|
| base::SharedMemoryHandle GetSharedMemoryHandleForProcess(
|
| - ConsumerType consumer_type, base::ProcessHandle handle);
|
| + ConsumerType consumer_type,
|
| + base::ProcessHandle handle);
|
|
|
| // Stop/join with the background polling thread in |provider_|.
|
| void Shutdown();
|
| @@ -53,8 +54,7 @@ class CONTENT_EXPORT DeviceInertialSensorService {
|
| DeviceInertialSensorService();
|
| virtual ~DeviceInertialSensorService();
|
|
|
| - bool ChangeNumberConsumers(ConsumerType consumer_type,
|
| - int delta);
|
| + bool ChangeNumberConsumers(ConsumerType consumer_type, int delta);
|
| int GetNumberConsumers(ConsumerType consumer_type) const;
|
|
|
| int num_light_readers_;
|
| @@ -67,6 +67,6 @@ class CONTENT_EXPORT DeviceInertialSensorService {
|
| DISALLOW_COPY_AND_ASSIGN(DeviceInertialSensorService);
|
| };
|
|
|
| -} // namespace content
|
| +} // namespace device
|
|
|
| -#endif // CONTENT_BROWSER_DEVICE_SENSORS_DEVICE_INERTIAL_SENSOR_SERVICE_H_
|
| +#endif // DEVICE_DEVICE_SENSORS_DEVICE_INERTIAL_SENSOR_SERVICE_H_
|
|
|