Cleanup unused class/includes device(motion|orientation)

DeviceMotionService was replaced by the more general
device_inertial_sensor_service class in r219007.
Cleaning up a the leftovers and some unused class/includes.

Review URL: https://codereview.chromium.org/285373002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@272253 0039d316-1c4b-4281-b951-d872f2087c98
parent 63f2fa66
...@@ -170,7 +170,7 @@ class DeviceInertialSensorBrowserTest : public ContentBrowserTest { ...@@ -170,7 +170,7 @@ class DeviceInertialSensorBrowserTest : public ContentBrowserTest {
void SetUpOnIOThread() { void SetUpOnIOThread() {
fetcher_ = new FakeDataFetcher(); fetcher_ = new FakeDataFetcher();
DeviceInertialSensorService::GetInstance()-> DeviceInertialSensorService::GetInstance()->
SetDataFetcherForTests(fetcher_); SetDataFetcherForTesting(fetcher_);
io_loop_finished_event_.Signal(); io_loop_finished_event_.Signal();
} }
......
...@@ -8,7 +8,6 @@ ...@@ -8,7 +8,6 @@
#include "base/logging.h" #include "base/logging.h"
#include "base/memory/singleton.h" #include "base/memory/singleton.h"
#include "content/browser/device_sensors/data_fetcher_shared_memory.h" #include "content/browser/device_sensors/data_fetcher_shared_memory.h"
#include "content/public/browser/render_process_host.h"
namespace content { namespace content {
...@@ -91,7 +90,7 @@ void DeviceInertialSensorService::Shutdown() { ...@@ -91,7 +90,7 @@ void DeviceInertialSensorService::Shutdown() {
is_shutdown_ = true; is_shutdown_ = true;
} }
void DeviceInertialSensorService::SetDataFetcherForTests( void DeviceInertialSensorService::SetDataFetcherForTesting(
DataFetcherSharedMemory* test_data_fetcher) { DataFetcherSharedMemory* test_data_fetcher) {
data_fetcher_.reset(test_data_fetcher); data_fetcher_.reset(test_data_fetcher);
} }
......
...@@ -17,11 +17,10 @@ ...@@ -17,11 +17,10 @@
namespace content { namespace content {
class DataFetcherSharedMemory; class DataFetcherSharedMemory;
class RenderProcessHost;
// Owns the DeviceMotionProvider (the background polling thread) and keeps // Owns the data fetcher for Device Motion and Orientation and keeps track of
// track of the number of consumers currently using the data (and pausing // the number of consumers currently using the data. The data fetcher is stopped
// the provider when not in use). // when there are no consumers.
class CONTENT_EXPORT DeviceInertialSensorService { class CONTENT_EXPORT DeviceInertialSensorService {
public: public:
// Returns the DeviceInertialSensorService singleton. // Returns the DeviceInertialSensorService singleton.
...@@ -46,7 +45,7 @@ class CONTENT_EXPORT DeviceInertialSensorService { ...@@ -46,7 +45,7 @@ class CONTENT_EXPORT DeviceInertialSensorService {
// Injects a custom data fetcher for testing purposes. This class takes // Injects a custom data fetcher for testing purposes. This class takes
// ownership of the injected object. // ownership of the injected object.
void SetDataFetcherForTests(DataFetcherSharedMemory* test_data_fetcher); void SetDataFetcherForTesting(DataFetcherSharedMemory* test_data_fetcher);
private: private:
friend struct DefaultSingletonTraits<DeviceInertialSensorService>; friend struct DefaultSingletonTraits<DeviceInertialSensorService>;
......
...@@ -5,14 +5,10 @@ ...@@ -5,14 +5,10 @@
#ifndef CONTENT_BROWSER_DEVICE_SENSORS_DEVICE_MOTION_MESSAGE_FILTER_H_ #ifndef CONTENT_BROWSER_DEVICE_SENSORS_DEVICE_MOTION_MESSAGE_FILTER_H_
#define CONTENT_BROWSER_DEVICE_SENSORS_DEVICE_MOTION_MESSAGE_FILTER_H_ #define CONTENT_BROWSER_DEVICE_SENSORS_DEVICE_MOTION_MESSAGE_FILTER_H_
#include "base/compiler_specific.h"
#include "content/public/browser/browser_message_filter.h" #include "content/public/browser/browser_message_filter.h"
namespace content { namespace content {
class DeviceMotionService;
class RenderProcessHost;
class DeviceMotionMessageFilter : public BrowserMessageFilter { class DeviceMotionMessageFilter : public BrowserMessageFilter {
public: public:
DeviceMotionMessageFilter(); DeviceMotionMessageFilter();
......
...@@ -5,13 +5,10 @@ ...@@ -5,13 +5,10 @@
#ifndef CONTENT_BROWSER_DEVICE_SENSORS_DEVICE_ORIENTATION_MESSAGE_FILTER_H_ #ifndef CONTENT_BROWSER_DEVICE_SENSORS_DEVICE_ORIENTATION_MESSAGE_FILTER_H_
#define CONTENT_BROWSER_DEVICE_SENSORS_DEVICE_ORIENTATION_MESSAGE_FILTER_H_ #define CONTENT_BROWSER_DEVICE_SENSORS_DEVICE_ORIENTATION_MESSAGE_FILTER_H_
#include "base/compiler_specific.h"
#include "content/public/browser/browser_message_filter.h" #include "content/public/browser/browser_message_filter.h"
namespace content { namespace content {
class RenderProcessHost;
class DeviceOrientationMessageFilter : public BrowserMessageFilter { class DeviceOrientationMessageFilter : public BrowserMessageFilter {
public: public:
DeviceOrientationMessageFilter(); DeviceOrientationMessageFilter();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment