| Index: chrome/browser/chromeos/cros/screen_lock_library.h
|
| diff --git a/chrome/browser/chromeos/cros/screen_lock_library.h b/chrome/browser/chromeos/cros/screen_lock_library.h
|
| index a544c44a131d032a88d7c8fce9182ec47146eba6..f6206e0b2d0f1432b5bf7d90f0a9b8078568f09a 100644
|
| --- a/chrome/browser/chromeos/cros/screen_lock_library.h
|
| +++ b/chrome/browser/chromeos/cros/screen_lock_library.h
|
| @@ -35,48 +35,9 @@ class ScreenLockLibrary {
|
| virtual void NotifyScreenUnlockRequested() = 0;
|
| // Notifies PowerManager that screen is unlocked.
|
| virtual void NotifyScreenUnlockCompleted() = 0;
|
| -};
|
| -
|
| -// This class handles the interaction with the ChromeOS screen lock APIs.
|
| -class ScreenLockLibraryImpl : public ScreenLockLibrary {
|
| - public:
|
| - ScreenLockLibraryImpl();
|
| - virtual ~ScreenLockLibraryImpl();
|
| -
|
| - // ScreenLockLibrary implementations:
|
| - virtual void AddObserver(Observer* observer);
|
| - virtual void RemoveObserver(Observer* observer);
|
| - virtual void NotifyScreenLockRequested();
|
| - virtual void NotifyScreenLockCompleted();
|
| - virtual void NotifyScreenUnlockRequested();
|
| - virtual void NotifyScreenUnlockCompleted();
|
| -
|
| - private:
|
| - // This method is called when PowerManager requests to lock the screen.
|
| - // This method is called on a background thread.
|
| - static void ScreenLockedHandler(void* object, ScreenLockEvent event);
|
| -
|
| - // This methods starts the monitoring of screen lock request.
|
| - void Init();
|
| -
|
| - // Called by the handler to notify the screen lock request from
|
| - // SessionManager.
|
| - void LockScreen();
|
| -
|
| - // Called by the handler to notify the screen unlock request from
|
| - // SessionManager.
|
| - void UnlockScreen();
|
| -
|
| - // Called by the handler to notify the screen unlock request has been
|
| - // failed.
|
| - void UnlockScreenFailed();
|
| -
|
| - ObserverList<Observer> observers_;
|
| -
|
| - // A reference to the screen lock api
|
| - chromeos::ScreenLockConnection screen_lock_connection_;
|
|
|
| - DISALLOW_COPY_AND_ASSIGN(ScreenLockLibraryImpl);
|
| + // Get library implementation.
|
| + static ScreenLockLibrary* GetImpl(bool stub);
|
| };
|
|
|
| } // namespace chromeos
|
|
|