| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_LOGIN_SCREEN_LOCKER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREEN_LOCKER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREEN_LOCKER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREEN_LOCKER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 friend class ScreenLockerDelegate; | 103 friend class ScreenLockerDelegate; |
| 104 | 104 |
| 105 virtual ~ScreenLocker(); | 105 virtual ~ScreenLocker(); |
| 106 | 106 |
| 107 // Sets the authenticator. | 107 // Sets the authenticator. |
| 108 void SetAuthenticator(Authenticator* authenticator); | 108 void SetAuthenticator(Authenticator* authenticator); |
| 109 | 109 |
| 110 // Called when the screen lock is ready. | 110 // Called when the screen lock is ready. |
| 111 void ScreenLockReady(); | 111 void ScreenLockReady(); |
| 112 | 112 |
| 113 // Called when screen locker is safe to delete. |
| 114 static void ScheduleDeletion(); |
| 115 |
| 113 // ScreenLockerDelegate instance in use. | 116 // ScreenLockerDelegate instance in use. |
| 114 scoped_ptr<ScreenLockerDelegate> delegate_; | 117 scoped_ptr<ScreenLockerDelegate> delegate_; |
| 115 | 118 |
| 116 // Logged in user. | 119 // Logged in user. |
| 117 const User& user_; | 120 const User& user_; |
| 118 | 121 |
| 119 // Used to authenticate the user to unlock. | 122 // Used to authenticate the user to unlock. |
| 120 scoped_refptr<Authenticator> authenticator_; | 123 scoped_refptr<Authenticator> authenticator_; |
| 121 | 124 |
| 122 // Unlock the screen when it detects key/mouse event without asking | 125 // Unlock the screen when it detects key/mouse event without asking |
| (...skipping 20 matching lines...) Expand all Loading... |
| 143 | 146 |
| 144 // Number of bad login attempts in a row. | 147 // Number of bad login attempts in a row. |
| 145 int incorrect_passwords_count_; | 148 int incorrect_passwords_count_; |
| 146 | 149 |
| 147 DISALLOW_COPY_AND_ASSIGN(ScreenLocker); | 150 DISALLOW_COPY_AND_ASSIGN(ScreenLocker); |
| 148 }; | 151 }; |
| 149 | 152 |
| 150 } // namespace chromeos | 153 } // namespace chromeos |
| 151 | 154 |
| 152 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREEN_LOCKER_H_ | 155 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREEN_LOCKER_H_ |
| OLD | NEW |