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_REGULAR_H_ | 5 #ifndef CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SERVICE_REGULAR_H_ |
6 #define CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SERVICE_REGULAR_H_ | 6 #define CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SERVICE_REGULAR_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 20 matching lines...) Expand all Loading... |
31 // EasyUnlockService implementation. | 31 // EasyUnlockService implementation. |
32 virtual EasyUnlockService::Type GetType() const OVERRIDE; | 32 virtual EasyUnlockService::Type GetType() const OVERRIDE; |
33 virtual std::string GetUserEmail() const OVERRIDE; | 33 virtual std::string GetUserEmail() const OVERRIDE; |
34 virtual void LaunchSetup() OVERRIDE; | 34 virtual void LaunchSetup() OVERRIDE; |
35 virtual const base::DictionaryValue* GetPermitAccess() const OVERRIDE; | 35 virtual const base::DictionaryValue* GetPermitAccess() const OVERRIDE; |
36 virtual void SetPermitAccess(const base::DictionaryValue& permit) OVERRIDE; | 36 virtual void SetPermitAccess(const base::DictionaryValue& permit) OVERRIDE; |
37 virtual void ClearPermitAccess() OVERRIDE; | 37 virtual void ClearPermitAccess() OVERRIDE; |
38 virtual const base::ListValue* GetRemoteDevices() const OVERRIDE; | 38 virtual const base::ListValue* GetRemoteDevices() const OVERRIDE; |
39 virtual void SetRemoteDevices(const base::ListValue& devices) OVERRIDE; | 39 virtual void SetRemoteDevices(const base::ListValue& devices) OVERRIDE; |
40 virtual void ClearRemoteDevices() OVERRIDE; | 40 virtual void ClearRemoteDevices() OVERRIDE; |
| 41 virtual void SetHardlocked(bool value) OVERRIDE; |
| 42 virtual bool IsHardlocked() const OVERRIDE; |
41 virtual void RunTurnOffFlow() OVERRIDE; | 43 virtual void RunTurnOffFlow() OVERRIDE; |
42 virtual void ResetTurnOffFlow() OVERRIDE; | 44 virtual void ResetTurnOffFlow() OVERRIDE; |
43 virtual TurnOffFlowStatus GetTurnOffFlowStatus() const OVERRIDE; | 45 virtual TurnOffFlowStatus GetTurnOffFlowStatus() const OVERRIDE; |
44 virtual std::string GetChallenge() const OVERRIDE; | 46 virtual std::string GetChallenge() const OVERRIDE; |
45 virtual std::string GetWrappedSecret() const OVERRIDE; | 47 virtual std::string GetWrappedSecret() const OVERRIDE; |
46 virtual void InitializeInternal() OVERRIDE; | 48 virtual void InitializeInternal() OVERRIDE; |
47 virtual void ShutdownInternal() OVERRIDE; | 49 virtual void ShutdownInternal() OVERRIDE; |
48 virtual bool IsAllowedInternal() OVERRIDE; | 50 virtual bool IsAllowedInternal() OVERRIDE; |
49 | 51 |
50 // Callback when the controlling pref changes. | 52 // Callback when the controlling pref changes. |
51 void OnPrefsChanged(); | 53 void OnPrefsChanged(); |
52 | 54 |
53 // Sets the new turn-off flow status. | 55 // Sets the new turn-off flow status. |
54 void SetTurnOffFlowStatus(TurnOffFlowStatus status); | 56 void SetTurnOffFlowStatus(TurnOffFlowStatus status); |
55 | 57 |
56 // Callback invoked when turn off flow has finished. | 58 // Callback invoked when turn off flow has finished. |
57 void OnTurnOffFlowFinished(bool success); | 59 void OnTurnOffFlowFinished(bool success); |
58 | 60 |
59 PrefChangeRegistrar registrar_; | 61 PrefChangeRegistrar registrar_; |
60 | 62 |
61 TurnOffFlowStatus turn_off_flow_status_; | 63 TurnOffFlowStatus turn_off_flow_status_; |
62 scoped_ptr<EasyUnlockToggleFlow> turn_off_flow_; | 64 scoped_ptr<EasyUnlockToggleFlow> turn_off_flow_; |
63 | 65 |
64 DISALLOW_COPY_AND_ASSIGN(EasyUnlockServiceRegular); | 66 DISALLOW_COPY_AND_ASSIGN(EasyUnlockServiceRegular); |
65 }; | 67 }; |
66 | 68 |
67 #endif // CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SERVICE_REGULAR_H_ | 69 #endif // CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SERVICE_REGULAR_H_ |
OLD | NEW |