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

Unified Diff: device/device_sensors/data_fetcher_shared_memory_base.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_base.h
diff --git a/content/browser/device_sensors/data_fetcher_shared_memory_base.h b/device/device_sensors/data_fetcher_shared_memory_base.h
similarity index 87%
rename from content/browser/device_sensors/data_fetcher_shared_memory_base.h
rename to device/device_sensors/data_fetcher_shared_memory_base.h
index c13c37800aae5e821992301f6e99e50f6d14bd8a..62ce65802e5ef3c10dc8d2ba3d9e8e10ff1ab56e 100644
--- a/content/browser/device_sensors/data_fetcher_shared_memory_base.h
+++ b/device/device_sensors/data_fetcher_shared_memory_base.h
@@ -2,25 +2,25 @@
// 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_BASE_H_
-#define CONTENT_BROWSER_DEVICE_SENSORS_DATA_FETCHER_SHARED_MEMORY_BASE_H_
+#ifndef DEVICE_DEVICE_SENSORS_DATA_FETCHER_SHARED_MEMORY_BASE_H_
+#define DEVICE_DEVICE_SENSORS_DATA_FETCHER_SHARED_MEMORY_BASE_H_
#include <map>
#include "base/memory/scoped_ptr.h"
#include "base/memory/shared_memory.h"
#include "base/message_loop/message_loop.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 {
// Sensor data fetchers should derive from this base class and implement
// the abstract Start() and Stop() methods.
// If the fetcher requires polling it should also implement IsPolling()
// to return true and the Fetch() method which will be called from the
// polling thread to fetch data at regular intervals.
-class CONTENT_EXPORT DataFetcherSharedMemoryBase {
+class DEVICE_SENSORS_EXPORT DataFetcherSharedMemoryBase {
public:
// Starts updating the shared memory buffer with sensor data at
// regular intervals. Returns true if the relevant sensors could
@@ -40,7 +40,8 @@ class CONTENT_EXPORT DataFetcherSharedMemoryBase {
// called after a call to StartFetchingDeviceData method with
// corresponding |consumer_type| parameter.
base::SharedMemoryHandle GetSharedMemoryHandleForProcess(
- ConsumerType consumer_type, base::ProcessHandle process);
+ ConsumerType consumer_type,
+ base::ProcessHandle process);
enum FetcherType {
// Fetcher runs on the same thread as its creator.
@@ -97,6 +98,6 @@ class CONTENT_EXPORT DataFetcherSharedMemoryBase {
DISALLOW_COPY_AND_ASSIGN(DataFetcherSharedMemoryBase);
};
-} // namespace content
+} // namespace device
-#endif // CONTENT_BROWSER_DEVICE_SENSORS_DATA_FETCHER_SHARED_MEMORY_BASE_H_
+#endif // DEVICE_DEVICE_SENSORS_DATA_FETCHER_SHARED_MEMORY_BASE_H_
« no previous file with comments | « device/device_sensors/data_fetcher_shared_memory_android.cc ('k') | device/device_sensors/data_fetcher_shared_memory_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698