OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 COMPONENTS_PROXIMITY_AUTH_UNLOCK_MANAGER_H | 5 #ifndef COMPONENTS_PROXIMITY_AUTH_UNLOCK_MANAGER_H |
6 #define COMPONENTS_PROXIMITY_AUTH_UNLOCK_MANAGER_H | 6 #define COMPONENTS_PROXIMITY_AUTH_UNLOCK_MANAGER_H |
7 | 7 |
8 #include "components/proximity_auth/screenlock_bridge.h" | 8 #include "components/proximity_auth/screenlock_bridge.h" |
9 | 9 |
10 namespace proximity_auth { | 10 namespace proximity_auth { |
(...skipping 13 matching lines...) Expand all Loading... |
24 // dispatched. A null |life_cycle| indicates that proximity-based | 24 // dispatched. A null |life_cycle| indicates that proximity-based |
25 // authentication is inactive. | 25 // authentication is inactive. |
26 virtual void SetRemoteDeviceLifeCycle(RemoteDeviceLifeCycle* life_cycle) = 0; | 26 virtual void SetRemoteDeviceLifeCycle(RemoteDeviceLifeCycle* life_cycle) = 0; |
27 | 27 |
28 // Called when the life cycle's state changes. | 28 // Called when the life cycle's state changes. |
29 virtual void OnLifeCycleStateChanged() = 0; | 29 virtual void OnLifeCycleStateChanged() = 0; |
30 | 30 |
31 // Called when the user pod is clicked for an authentication attempt of type | 31 // Called when the user pod is clicked for an authentication attempt of type |
32 // |auth_type|. | 32 // |auth_type|. |
33 // Exposed for testing. | 33 // Exposed for testing. |
34 virtual void OnAuthAttempted( | 34 virtual void OnAuthAttempted(mojom::AuthType auth_type) = 0; |
35 ScreenlockBridge::LockHandler::AuthType auth_type) = 0; | |
36 }; | 35 }; |
37 | 36 |
38 } // namespace proximity_auth | 37 } // namespace proximity_auth |
39 | 38 |
40 #endif // COMPONENTS_PROXIMITY_AUTH_UNLOCK_MANAGER_H | 39 #endif // COMPONENTS_PROXIMITY_AUTH_UNLOCK_MANAGER_H |
OLD | NEW |