| 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 | 72 |
| 73 // Registers Easy Unlock local state entries. | 73 // Registers Easy Unlock local state entries. |
| 74 static void RegisterPrefs(PrefRegistrySimple* registry); | 74 static void RegisterPrefs(PrefRegistrySimple* registry); |
| 75 | 75 |
| 76 // Removes the hardlock state for the given user. | 76 // Removes the hardlock state for the given user. |
| 77 static void ResetLocalStateForUser(const std::string& user_id); | 77 static void ResetLocalStateForUser(const std::string& user_id); |
| 78 | 78 |
| 79 // Returns the user's preferences. | 79 // Returns the user's preferences. |
| 80 static UserSettings GetUserSettings(const std::string& user_id); | 80 static UserSettings GetUserSettings(const std::string& user_id); |
| 81 | 81 |
| 82 // Returns the identifier for the device. |
| 83 static std::string GetDeviceId(); |
| 84 |
| 82 // Returns true if Easy sign-in is enabled. | 85 // Returns true if Easy sign-in is enabled. |
| 83 static bool IsSignInEnabled(); | 86 static bool IsSignInEnabled(); |
| 84 | 87 |
| 85 // Returns the EasyUnlockService type. | 88 // Returns the EasyUnlockService type. |
| 86 virtual Type GetType() const = 0; | 89 virtual Type GetType() const = 0; |
| 87 | 90 |
| 88 // Returns the user currently associated with the service. | 91 // Returns the user currently associated with the service. |
| 89 virtual std::string GetUserEmail() const = 0; | 92 virtual std::string GetUserEmail() const = 0; |
| 90 | 93 |
| 91 // Launches Easy Unlock Setup app. | 94 // Launches Easy Unlock Setup app. |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 295 bool tpm_key_checked_; | 298 bool tpm_key_checked_; |
| 296 | 299 |
| 297 ObserverList<EasyUnlockServiceObserver> observers_; | 300 ObserverList<EasyUnlockServiceObserver> observers_; |
| 298 | 301 |
| 299 base::WeakPtrFactory<EasyUnlockService> weak_ptr_factory_; | 302 base::WeakPtrFactory<EasyUnlockService> weak_ptr_factory_; |
| 300 | 303 |
| 301 DISALLOW_COPY_AND_ASSIGN(EasyUnlockService); | 304 DISALLOW_COPY_AND_ASSIGN(EasyUnlockService); |
| 302 }; | 305 }; |
| 303 | 306 |
| 304 #endif // CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SERVICE_H_ | 307 #endif // CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SERVICE_H_ |
| OLD | NEW |