| 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 virtual std::string GetUserEmail() const = 0; | 76 virtual std::string GetUserEmail() const = 0; |
| 77 | 77 |
| 78 // Launches Easy Unlock Setup app. | 78 // Launches Easy Unlock Setup app. |
| 79 virtual void LaunchSetup() = 0; | 79 virtual void LaunchSetup() = 0; |
| 80 | 80 |
| 81 // Gets/Sets/Clears the permit access for the local device. | 81 // Gets/Sets/Clears the permit access for the local device. |
| 82 virtual const base::DictionaryValue* GetPermitAccess() const = 0; | 82 virtual const base::DictionaryValue* GetPermitAccess() const = 0; |
| 83 virtual void SetPermitAccess(const base::DictionaryValue& permit) = 0; | 83 virtual void SetPermitAccess(const base::DictionaryValue& permit) = 0; |
| 84 virtual void ClearPermitAccess() = 0; | 84 virtual void ClearPermitAccess() = 0; |
| 85 | 85 |
| 86 // Gets/Sets the remote devices list. | 86 // Gets/Sets/Clears the remote devices list. |
| 87 virtual const base::ListValue* GetRemoteDevices() const = 0; | 87 virtual const base::ListValue* GetRemoteDevices() const = 0; |
| 88 virtual void SetRemoteDevices(const base::ListValue& devices) = 0; | 88 virtual void SetRemoteDevices(const base::ListValue& devices) = 0; |
| 89 virtual void ClearRemoteDevices() = 0; |
| 89 | 90 |
| 90 // Runs the flow for turning Easy unlock off. | 91 // Runs the flow for turning Easy unlock off. |
| 91 virtual void RunTurnOffFlow() = 0; | 92 virtual void RunTurnOffFlow() = 0; |
| 92 | 93 |
| 93 // Resets the turn off flow if one is in progress. | 94 // Resets the turn off flow if one is in progress. |
| 94 virtual void ResetTurnOffFlow() = 0; | 95 virtual void ResetTurnOffFlow() = 0; |
| 95 | 96 |
| 96 // Returns the current turn off flow status. | 97 // Returns the current turn off flow status. |
| 97 virtual TurnOffFlowStatus GetTurnOffFlowStatus() const = 0; | 98 virtual TurnOffFlowStatus GetTurnOffFlowStatus() const = 0; |
| 98 | 99 |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 279 bool tpm_key_checked_; | 280 bool tpm_key_checked_; |
| 280 | 281 |
| 281 ObserverList<EasyUnlockServiceObserver> observers_; | 282 ObserverList<EasyUnlockServiceObserver> observers_; |
| 282 | 283 |
| 283 base::WeakPtrFactory<EasyUnlockService> weak_ptr_factory_; | 284 base::WeakPtrFactory<EasyUnlockService> weak_ptr_factory_; |
| 284 | 285 |
| 285 DISALLOW_COPY_AND_ASSIGN(EasyUnlockService); | 286 DISALLOW_COPY_AND_ASSIGN(EasyUnlockService); |
| 286 }; | 287 }; |
| 287 | 288 |
| 288 #endif // CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SERVICE_H_ | 289 #endif // CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SERVICE_H_ |
| OLD | NEW |