| 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 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 | 191 |
| 192 // Service type specific tests for whether the service is allowed. Returns | 192 // Service type specific tests for whether the service is allowed. Returns |
| 193 // false if service is not allowed. If true is returned, the service may still | 193 // false if service is not allowed. If true is returned, the service may still |
| 194 // not be allowed if common tests fail (e.g. if Bluetooth is not available). | 194 // not be allowed if common tests fail (e.g. if Bluetooth is not available). |
| 195 virtual bool IsAllowedInternal() = 0; | 195 virtual bool IsAllowedInternal() = 0; |
| 196 | 196 |
| 197 // KeyedService override: | 197 // KeyedService override: |
| 198 void Shutdown() override; | 198 void Shutdown() override; |
| 199 | 199 |
| 200 // Exposes the profile to which the service is attached to subclasses. | 200 // Exposes the profile to which the service is attached to subclasses. |
| 201 Profile* profile() const { return profile_; } | 201 const Profile* profile() const { return profile_; } |
| 202 Profile* profile() { return profile_; } |
| 202 | 203 |
| 203 // Installs the Easy unlock component app if it isn't installed and enables | 204 // Installs the Easy unlock component app if it isn't installed and enables |
| 204 // the app if it is disabled. | 205 // the app if it is disabled. |
| 205 void LoadApp(); | 206 void LoadApp(); |
| 206 | 207 |
| 207 // Disables the Easy unlock component app if it's loaded. | 208 // Disables the Easy unlock component app if it's loaded. |
| 208 void DisableAppIfLoaded(); | 209 void DisableAppIfLoaded(); |
| 209 | 210 |
| 210 // Unloads the Easy unlock component app if it's loaded. | 211 // Unloads the Easy unlock component app if it's loaded. |
| 211 void UnloadApp(); | 212 void UnloadApp(); |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 292 bool tpm_key_checked_; | 293 bool tpm_key_checked_; |
| 293 | 294 |
| 294 ObserverList<EasyUnlockServiceObserver> observers_; | 295 ObserverList<EasyUnlockServiceObserver> observers_; |
| 295 | 296 |
| 296 base::WeakPtrFactory<EasyUnlockService> weak_ptr_factory_; | 297 base::WeakPtrFactory<EasyUnlockService> weak_ptr_factory_; |
| 297 | 298 |
| 298 DISALLOW_COPY_AND_ASSIGN(EasyUnlockService); | 299 DISALLOW_COPY_AND_ASSIGN(EasyUnlockService); |
| 299 }; | 300 }; |
| 300 | 301 |
| 301 #endif // CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SERVICE_H_ | 302 #endif // CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SERVICE_H_ |
| OLD | NEW |