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

Unified Diff: device/sensors/device_sensor_service.h

Issue 2646093002: Move //content/browser/device_sensor/ into device/sensors (Closed)
Patch Set: gn format & code rebase Created 3 years, 11 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
« no previous file with comments | « device/sensors/device_sensor_host.cc ('k') | device/sensors/device_sensor_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/sensors/device_sensor_service.h
diff --git a/content/browser/device_sensors/device_sensor_service.h b/device/sensors/device_sensor_service.h
similarity index 84%
rename from content/browser/device_sensors/device_sensor_service.h
rename to device/sensors/device_sensor_service.h
index 00946b484ae160a329029147e4255bf3a4dd2d63..17ae9f82a00473fd800018b29ab2de1ab5e338ea 100644
--- a/content/browser/device_sensors/device_sensor_service.h
+++ b/device/sensors/device_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_SENSOR_SERVICE_H_
-#define CONTENT_BROWSER_DEVICE_SENSORS_DEVICE_SENSOR_SERVICE_H_
+#ifndef DEVICE_SENSORS_DEVICE_SENSOR_SERVICE_H_
+#define DEVICE_SENSORS_DEVICE_SENSOR_SERVICE_H_
#include <memory>
@@ -12,18 +12,18 @@
#include "base/memory/shared_memory.h"
#include "base/memory/singleton.h"
#include "base/threading/thread_checker.h"
-#include "content/browser/device_sensors/device_sensors_consts.h"
-#include "content/common/content_export.h"
+#include "device/sensors/device_sensor_export.h"
+#include "device/sensors/device_sensors_consts.h"
#include "mojo/public/cpp/system/buffer.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 DeviceSensorService {
+class DEVICE_SENSOR_EXPORT DeviceSensorService {
public:
// Returns the DeviceSensorService singleton.
static DeviceSensorService* GetInstance();
@@ -68,6 +68,6 @@ class CONTENT_EXPORT DeviceSensorService {
DISALLOW_COPY_AND_ASSIGN(DeviceSensorService);
};
-} // namespace content
+} // namespace device
-#endif // CONTENT_BROWSER_DEVICE_SENSORS_DEVICE_SENSOR_SERVICE_H_
+#endif // DEVICE_SENSORS_DEVICE_SENSOR_SERVICE_H_
« no previous file with comments | « device/sensors/device_sensor_host.cc ('k') | device/sensors/device_sensor_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698