| Index: content/browser/device_orientation/provider.h
|
| diff --git a/content/browser/device_orientation/provider.h b/content/browser/device_orientation/provider.h
|
| index 39ec86007db1ff891627086b72caa1e9fa8a463f..2d3a4dfb506e8208f45071625f9032b4698e176d 100644
|
| --- a/content/browser/device_orientation/provider.h
|
| +++ b/content/browser/device_orientation/provider.h
|
| @@ -14,15 +14,16 @@ class Orientation;
|
|
|
| class CONTENT_EXPORT Provider : public base::RefCountedThreadSafe<Provider> {
|
| public:
|
| - class Observer {
|
| + class OrientationObserver {
|
| public:
|
| // Called when the orientation changes.
|
| - // An Observer must not synchronously call Provider::RemoveObserver
|
| - // or Provider::AddObserver when this is called.
|
| + // An OrientationObserver must not synchronously call Provider::
|
| + // RemoveOrientationObserver or Provider::AddOrientationObserver when this
|
| + // is called.
|
| virtual void OnOrientationUpdate(const Orientation& orientation) = 0;
|
|
|
| protected:
|
| - virtual ~Observer() {}
|
| + virtual ~OrientationObserver() {}
|
| };
|
|
|
| // Returns a pointer to the singleton instance of this class.
|
| @@ -39,10 +40,10 @@ class CONTENT_EXPORT Provider : public base::RefCountedThreadSafe<Provider> {
|
| // Get the current instance. Used for testing.
|
| static Provider* GetInstanceForTests();
|
|
|
| - // Note: AddObserver may call back synchronously to the observer with
|
| - // orientation data.
|
| - virtual void AddObserver(Observer* observer) = 0;
|
| - virtual void RemoveObserver(Observer* observer) = 0;
|
| + // Note: AddOrientationObserver may call back synchronously to the observer
|
| + // with the orientation data.
|
| + virtual void AddOrientationObserver(OrientationObserver* observer) = 0;
|
| + virtual void RemoveOrientationObserver(OrientationObserver* observer) = 0;
|
|
|
| protected:
|
| Provider();
|
|
|