| Index: device/device_sensors/data_fetcher_shared_memory.h
|
| diff --git a/content/browser/device_sensors/data_fetcher_shared_memory.h b/device/device_sensors/data_fetcher_shared_memory.h
|
| similarity index 71%
|
| rename from content/browser/device_sensors/data_fetcher_shared_memory.h
|
| rename to device/device_sensors/data_fetcher_shared_memory.h
|
| index ea56b003fd7abfb543fac4afc3ee4f0c6e048a05..d07573c649027aaf506721455348bbb7f71bc6d4 100644
|
| --- a/content/browser/device_sensors/data_fetcher_shared_memory.h
|
| +++ b/device/device_sensors/data_fetcher_shared_memory.h
|
| @@ -2,15 +2,15 @@
|
| // 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_DATA_FETCHER_SHARED_MEMORY_H_
|
| -#define CONTENT_BROWSER_DEVICE_SENSORS_DATA_FETCHER_SHARED_MEMORY_H_
|
| +#ifndef DEVICE_DEVICE_SENSORS_DATA_FETCHER_SHARED_MEMORY_H_
|
| +#define DEVICE_DEVICE_SENSORS_DATA_FETCHER_SHARED_MEMORY_H_
|
|
|
| -#include "content/browser/device_sensors/data_fetcher_shared_memory_base.h"
|
| +#include "device/device_sensors/data_fetcher_shared_memory_base.h"
|
|
|
| #if !defined(OS_ANDROID)
|
| -#include "content/common/device_sensors/device_light_hardware_buffer.h"
|
| -#include "content/common/device_sensors/device_motion_hardware_buffer.h"
|
| -#include "content/common/device_sensors/device_orientation_hardware_buffer.h"
|
| +#include "device/device_sensors/device_light_hardware_buffer.h"
|
| +#include "device/device_sensors/device_motion_hardware_buffer.h"
|
| +#include "device/device_sensors/device_orientation_hardware_buffer.h"
|
| #endif
|
|
|
| #if defined(OS_MACOSX)
|
| @@ -20,7 +20,7 @@ class SuddenMotionSensor;
|
| #include "base/win/scoped_comptr.h"
|
| #endif
|
|
|
| -namespace content {
|
| +namespace device {
|
|
|
| #if defined(OS_CHROMEOS)
|
| class SensorManagerChromeOS;
|
| @@ -28,9 +28,8 @@ class SensorManagerChromeOS;
|
| class AmbientLightSensor;
|
| #endif
|
|
|
| -class CONTENT_EXPORT DataFetcherSharedMemory
|
| +class DEVICE_SENSORS_EXPORT DataFetcherSharedMemory
|
| : public DataFetcherSharedMemoryBase {
|
| -
|
| public:
|
| DataFetcherSharedMemory();
|
| ~DataFetcherSharedMemory() override;
|
| @@ -65,8 +64,9 @@ class CONTENT_EXPORT DataFetcherSharedMemory
|
|
|
| FetcherType GetType() const override;
|
|
|
| - bool RegisterForSensor(REFSENSOR_TYPE_ID sensor_type, ISensor** sensor,
|
| - scoped_refptr<SensorEventSink> event_sink);
|
| + bool RegisterForSensor(REFSENSOR_TYPE_ID sensor_type,
|
| + ISensor** sensor,
|
| + scoped_refptr<SensorEventSink> event_sink);
|
| void DisableSensors(ConsumerType consumer_type);
|
| void SetBufferAvailableState(ConsumerType consumer_type, bool enabled);
|
|
|
| @@ -79,6 +79,6 @@ class CONTENT_EXPORT DataFetcherSharedMemory
|
| DISALLOW_COPY_AND_ASSIGN(DataFetcherSharedMemory);
|
| };
|
|
|
| -} // namespace content
|
| +} // namespace device
|
|
|
| -#endif // CONTENT_BROWSER_DEVICE_SENSORS_DATA_FETCHER_SHARED_MEMORY_H_
|
| +#endif // DEVICE_DEVICE_SENSORS_DATA_FETCHER_SHARED_MEMORY_H_
|
|
|