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/Clears the remote devices list. | 86 // Gets/Sets 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; | |
90 | 89 |
91 // Runs the flow for turning Easy unlock off. | 90 // Runs the flow for turning Easy unlock off. |
92 virtual void RunTurnOffFlow() = 0; | 91 virtual void RunTurnOffFlow() = 0; |
93 | 92 |
94 // Resets the turn off flow if one is in progress. | 93 // Resets the turn off flow if one is in progress. |
95 virtual void ResetTurnOffFlow() = 0; | 94 virtual void ResetTurnOffFlow() = 0; |
96 | 95 |
97 // Returns the current turn off flow status. | 96 // Returns the current turn off flow status. |
98 virtual TurnOffFlowStatus GetTurnOffFlowStatus() const = 0; | 97 virtual TurnOffFlowStatus GetTurnOffFlowStatus() const = 0; |
99 | 98 |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
280 bool tpm_key_checked_; | 279 bool tpm_key_checked_; |
281 | 280 |
282 ObserverList<EasyUnlockServiceObserver> observers_; | 281 ObserverList<EasyUnlockServiceObserver> observers_; |
283 | 282 |
284 base::WeakPtrFactory<EasyUnlockService> weak_ptr_factory_; | 283 base::WeakPtrFactory<EasyUnlockService> weak_ptr_factory_; |
285 | 284 |
286 DISALLOW_COPY_AND_ASSIGN(EasyUnlockService); | 285 DISALLOW_COPY_AND_ASSIGN(EasyUnlockService); |
287 }; | 286 }; |
288 | 287 |
289 #endif // CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SERVICE_H_ | 288 #endif // CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SERVICE_H_ |
OLD | NEW |