OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_SIGNIN_EASY_UNLOCK_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SERVICE_H_ |
6 #define CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SERVICE_H_ | 6 #define CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SERVICE_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 virtual bool IsAllowedInternal() const = 0; | 212 virtual bool IsAllowedInternal() const = 0; |
213 | 213 |
214 // Called while processing a user gesture to unlock the screen using Easy | 214 // Called while processing a user gesture to unlock the screen using Easy |
215 // Unlock, just before the screen is unlocked. | 215 // Unlock, just before the screen is unlocked. |
216 virtual void OnWillFinalizeUnlock(bool success) = 0; | 216 virtual void OnWillFinalizeUnlock(bool success) = 0; |
217 | 217 |
218 // KeyedService override: | 218 // KeyedService override: |
219 void Shutdown() override; | 219 void Shutdown() override; |
220 | 220 |
221 // Exposes the profile to which the service is attached to subclasses. | 221 // Exposes the profile to which the service is attached to subclasses. |
222 Profile* profile() const { return profile_; } | 222 const Profile* profile() const { return profile_; } |
| 223 Profile* profile() { return profile_; } |
223 | 224 |
224 // Opens an Easy Unlock Setup app window. | 225 // Opens an Easy Unlock Setup app window. |
225 void OpenSetupApp(); | 226 void OpenSetupApp(); |
226 | 227 |
227 // Reloads the Easy unlock component app if it's loaded and resets the lock | 228 // Reloads the Easy unlock component app if it's loaded and resets the lock |
228 // screen state. | 229 // screen state. |
229 void ReloadAppAndLockScreen(); | 230 void ReloadAppAndLockScreen(); |
230 | 231 |
231 // Checks whether Easy unlock should be running and updates app state. | 232 // Checks whether Easy unlock should be running and updates app state. |
232 void UpdateAppState(); | 233 void UpdateAppState(); |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
320 bool tpm_key_checked_; | 321 bool tpm_key_checked_; |
321 | 322 |
322 ObserverList<EasyUnlockServiceObserver> observers_; | 323 ObserverList<EasyUnlockServiceObserver> observers_; |
323 | 324 |
324 base::WeakPtrFactory<EasyUnlockService> weak_ptr_factory_; | 325 base::WeakPtrFactory<EasyUnlockService> weak_ptr_factory_; |
325 | 326 |
326 DISALLOW_COPY_AND_ASSIGN(EasyUnlockService); | 327 DISALLOW_COPY_AND_ASSIGN(EasyUnlockService); |
327 }; | 328 }; |
328 | 329 |
329 #endif // CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SERVICE_H_ | 330 #endif // CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SERVICE_H_ |
OLD | NEW |