Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(134)

Unified Diff: device/device_sensors/data_fetcher_shared_memory.h

Issue 1164563003: Extract device_sensors to /device via Mojofication (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_
« no previous file with comments | « device/device_sensors/ambient_light_mac.cc ('k') | device/device_sensors/data_fetcher_shared_memory_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698