| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_CHROMEOS_CROS_SCREEN_LOCK_LIBRARY_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_CROS_SCREEN_LOCK_LIBRARY_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_CROS_SCREEN_LOCK_LIBRARY_H_ | 6 #define CHROME_BROWSER_CHROMEOS_CROS_SCREEN_LOCK_LIBRARY_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/observer_list.h" | 9 #include "base/observer_list.h" |
| 10 #include "cros/chromeos_screen_lock.h" | 10 #include "third_party/cros/chromeos_screen_lock.h" |
| 11 | 11 |
| 12 namespace chromeos { | 12 namespace chromeos { |
| 13 | 13 |
| 14 // This interface defines interaction with the ChromeOS screen lock | 14 // This interface defines interaction with the ChromeOS screen lock |
| 15 // APIs. | 15 // APIs. |
| 16 class ScreenLockLibrary { | 16 class ScreenLockLibrary { |
| 17 public: | 17 public: |
| 18 class Observer { | 18 class Observer { |
| 19 public: | 19 public: |
| 20 virtual ~Observer() {} | 20 virtual ~Observer() {} |
| (...skipping 16 matching lines...) Expand all Loading... |
| 37 virtual void NotifyScreenUnlockCompleted() = 0; | 37 virtual void NotifyScreenUnlockCompleted() = 0; |
| 38 | 38 |
| 39 // Factory function, creates a new instance and returns ownership. | 39 // Factory function, creates a new instance and returns ownership. |
| 40 // For normal usage, access the singleton via CrosLibrary::Get(). | 40 // For normal usage, access the singleton via CrosLibrary::Get(). |
| 41 static ScreenLockLibrary* GetImpl(bool stub); | 41 static ScreenLockLibrary* GetImpl(bool stub); |
| 42 }; | 42 }; |
| 43 | 43 |
| 44 } // namespace chromeos | 44 } // namespace chromeos |
| 45 | 45 |
| 46 #endif // CHROME_BROWSER_CHROMEOS_CROS_SCREEN_LOCK_LIBRARY_H_ | 46 #endif // CHROME_BROWSER_CHROMEOS_CROS_SCREEN_LOCK_LIBRARY_H_ |
| OLD | NEW |