| 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 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 | 225 |
| 226 #if defined(OS_CHROMEOS) | 226 #if defined(OS_CHROMEOS) |
| 227 // Callback for get key operation from CheckCryptohomeKeysAndMaybeHardlock. | 227 // Callback for get key operation from CheckCryptohomeKeysAndMaybeHardlock. |
| 228 void OnCryptohomeKeysFetchedForChecking( | 228 void OnCryptohomeKeysFetchedForChecking( |
| 229 const std::string& user_id, | 229 const std::string& user_id, |
| 230 const std::set<std::string> paired_devices, | 230 const std::set<std::string> paired_devices, |
| 231 bool success, | 231 bool success, |
| 232 const chromeos::EasyUnlockDeviceKeyDataList& key_data_list); | 232 const chromeos::EasyUnlockDeviceKeyDataList& key_data_list); |
| 233 #endif | 233 #endif |
| 234 | 234 |
| 235 // Updates the service to state for handling system suspend. |
| 236 void PrepareForSuspend(); |
| 237 |
| 235 Profile* profile_; | 238 Profile* profile_; |
| 236 | 239 |
| 237 // Created lazily in |GetScreenlockStateHandler|. | 240 // Created lazily in |GetScreenlockStateHandler|. |
| 238 scoped_ptr<EasyUnlockScreenlockStateHandler> screenlock_state_handler_; | 241 scoped_ptr<EasyUnlockScreenlockStateHandler> screenlock_state_handler_; |
| 239 | 242 |
| 240 // The handler for the current auth attempt. Set iff an auth attempt is in | 243 // The handler for the current auth attempt. Set iff an auth attempt is in |
| 241 // progress. | 244 // progress. |
| 242 scoped_ptr<EasyUnlockAuthAttempt> auth_attempt_; | 245 scoped_ptr<EasyUnlockAuthAttempt> auth_attempt_; |
| 243 | 246 |
| 244 scoped_ptr<BluetoothDetector> bluetooth_detector_; | 247 scoped_ptr<BluetoothDetector> bluetooth_detector_; |
| 245 | 248 |
| 246 #if defined(OS_CHROMEOS) | 249 #if defined(OS_CHROMEOS) |
| 247 // Monitors suspend and wake state of ChromeOS. | 250 // Monitors suspend and wake state of ChromeOS. |
| 248 class PowerMonitor; | 251 class PowerMonitor; |
| 249 scoped_ptr<PowerMonitor> power_monitor_; | 252 scoped_ptr<PowerMonitor> power_monitor_; |
| 250 #endif | 253 #endif |
| 251 | 254 |
| 252 // Whether the service has been shut down. | 255 // Whether the service has been shut down. |
| 253 bool shut_down_; | 256 bool shut_down_; |
| 254 | 257 |
| 255 ObserverList<EasyUnlockServiceObserver> observers_; | 258 ObserverList<EasyUnlockServiceObserver> observers_; |
| 256 | 259 |
| 257 base::WeakPtrFactory<EasyUnlockService> weak_ptr_factory_; | 260 base::WeakPtrFactory<EasyUnlockService> weak_ptr_factory_; |
| 258 | 261 |
| 259 DISALLOW_COPY_AND_ASSIGN(EasyUnlockService); | 262 DISALLOW_COPY_AND_ASSIGN(EasyUnlockService); |
| 260 }; | 263 }; |
| 261 | 264 |
| 262 #endif // CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SERVICE_H_ | 265 #endif // CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SERVICE_H_ |
| OLD | NEW |