| 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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 virtual void Shutdown() override; | 166 virtual void Shutdown() override; |
| 167 | 167 |
| 168 // Exposes the profile to which the service is attached to subclasses. | 168 // Exposes the profile to which the service is attached to subclasses. |
| 169 Profile* profile() const { return profile_; } | 169 Profile* profile() const { return profile_; } |
| 170 | 170 |
| 171 // Installs the Easy unlock component app if it isn't installed and enables | 171 // Installs the Easy unlock component app if it isn't installed and enables |
| 172 // the app if it is disabled. | 172 // the app if it is disabled. |
| 173 void LoadApp(); | 173 void LoadApp(); |
| 174 | 174 |
| 175 // Disables the Easy unlock component app if it's loaded. | 175 // Disables the Easy unlock component app if it's loaded. |
| 176 void DisableAppIfLoaded(); | 176 // |reset_screenlock_state|: Whether the screenlock state should be reset |
| 177 // before disabling the app. If set, the caller should take care of |
| 178 // properly updating the screenlock state. |
| 179 void DisableAppIfLoaded(bool reset_screenlock_state); |
| 177 | 180 |
| 178 // Unloads the Easy unlock component app if it's loaded. | 181 // Unloads the Easy unlock component app if it's loaded. |
| 179 void UnloadApp(); | 182 void UnloadApp(); |
| 180 | 183 |
| 181 // Reloads the Easy unlock component app if it's loaded. | 184 // Reloads the Easy unlock component app if it's loaded. |
| 182 void ReloadApp(); | 185 void ReloadApp(); |
| 183 | 186 |
| 184 // Checks whether Easy unlock should be running and updates app state. | 187 // Checks whether Easy unlock should be running and updates app state. |
| 185 void UpdateAppState(); | 188 void UpdateAppState(); |
| 186 | 189 |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 bool shut_down_; | 252 bool shut_down_; |
| 250 | 253 |
| 251 ObserverList<EasyUnlockServiceObserver> observers_; | 254 ObserverList<EasyUnlockServiceObserver> observers_; |
| 252 | 255 |
| 253 base::WeakPtrFactory<EasyUnlockService> weak_ptr_factory_; | 256 base::WeakPtrFactory<EasyUnlockService> weak_ptr_factory_; |
| 254 | 257 |
| 255 DISALLOW_COPY_AND_ASSIGN(EasyUnlockService); | 258 DISALLOW_COPY_AND_ASSIGN(EasyUnlockService); |
| 256 }; | 259 }; |
| 257 | 260 |
| 258 #endif // CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SERVICE_H_ | 261 #endif // CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SERVICE_H_ |
| OLD | NEW |