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

Unified Diff: content/browser/device_sensors/device_sensor_service.h

Issue 2126443002: Rename DeviceInertialSensorService to DeviceSensorService. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@conversion--sensors
Patch Set: rebase Created 4 years, 5 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: content/browser/device_sensors/device_sensor_service.h
diff --git a/content/browser/device_sensors/device_inertial_sensor_service.h b/content/browser/device_sensors/device_sensor_service.h
similarity index 77%
rename from content/browser/device_sensors/device_inertial_sensor_service.h
rename to content/browser/device_sensors/device_sensor_service.h
index fb2d9e4f61e5f22eaca4bf5ec77df37b0e936e0e..00946b484ae160a329029147e4255bf3a4dd2d63 100644
--- a/content/browser/device_sensors/device_inertial_sensor_service.h
+++ b/content/browser/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_INERTIAL_SENSOR_SERVICE_H_
-#define CONTENT_BROWSER_DEVICE_SENSORS_DEVICE_INERTIAL_SENSOR_SERVICE_H_
+#ifndef CONTENT_BROWSER_DEVICE_SENSORS_DEVICE_SENSOR_SERVICE_H_
+#define CONTENT_BROWSER_DEVICE_SENSORS_DEVICE_SENSOR_SERVICE_H_
#include <memory>
@@ -23,10 +23,10 @@ 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 CONTENT_EXPORT DeviceSensorService {
public:
- // Returns the DeviceInertialSensorService singleton.
- static DeviceInertialSensorService* GetInstance();
+ // Returns the DeviceSensorService singleton.
+ static DeviceSensorService* GetInstance();
// Increments the number of users of the provider. The Provider is running
// when there's > 0 users, and is paused when the count drops to 0.
@@ -49,10 +49,10 @@ class CONTENT_EXPORT DeviceInertialSensorService {
void SetDataFetcherForTesting(DataFetcherSharedMemory* test_data_fetcher);
private:
- friend struct base::DefaultSingletonTraits<DeviceInertialSensorService>;
+ friend struct base::DefaultSingletonTraits<DeviceSensorService>;
- DeviceInertialSensorService();
- virtual ~DeviceInertialSensorService();
+ DeviceSensorService();
+ virtual ~DeviceSensorService();
bool ChangeNumberConsumers(ConsumerType consumer_type, int delta);
int GetNumberConsumers(ConsumerType consumer_type) const;
@@ -65,9 +65,9 @@ class CONTENT_EXPORT DeviceInertialSensorService {
std::unique_ptr<DataFetcherSharedMemory> data_fetcher_;
base::ThreadChecker thread_checker_;
- DISALLOW_COPY_AND_ASSIGN(DeviceInertialSensorService);
+ DISALLOW_COPY_AND_ASSIGN(DeviceSensorService);
};
} // namespace content
-#endif // CONTENT_BROWSER_DEVICE_SENSORS_DEVICE_INERTIAL_SENSOR_SERVICE_H_
+#endif // CONTENT_BROWSER_DEVICE_SENSORS_DEVICE_SENSOR_SERVICE_H_
« no previous file with comments | « content/browser/device_sensors/device_sensor_host.cc ('k') | content/browser/device_sensors/device_sensor_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698