| Index: components/proximity_auth/proximity_auth_client.h
|
| diff --git a/components/proximity_auth/proximity_auth_client.h b/components/proximity_auth/proximity_auth_client.h
|
| index eb846cd97d75021f0ece37819190927a1eeb12bd..b5d2c7b834dd46da64912b7c7779cc860d7ac796 100644
|
| --- a/components/proximity_auth/proximity_auth_client.h
|
| +++ b/components/proximity_auth/proximity_auth_client.h
|
| @@ -7,6 +7,8 @@
|
|
|
| #include <string>
|
|
|
| +#include "components/proximity_auth/screenlock_state.h"
|
| +
|
| namespace proximity_auth {
|
|
|
| // An interface that needs to be supplied to the Proximity Auth component by its
|
| @@ -19,10 +21,19 @@ class ProximityAuthClient {
|
| // Returns the authenticated username.
|
| virtual std::string GetAuthenticatedUsername() const = 0;
|
|
|
| + // Updates the user pod on the signin or lock screen to reflect the provided
|
| + // screenlock state.
|
| + virtual void UpdateScreenlockState(ScreenlockState state) = 0;
|
| +
|
| // Finalizes an unlock attempt initiated by the user. If |success| is true,
|
| // the screen is unlocked; otherwise, the auth attempt is rejected. An auth
|
| // attempt must be in progress before calling this function.
|
| virtual void FinalizeUnlock(bool success) = 0;
|
| +
|
| + // Finalizes a sign-in attempt initiated by the user. If |success| is true,
|
| + // the user is signed in; otherwise, the auth attempt is rejected. An auth
|
| + // attempt must be in progress before calling this function.
|
| + virtual void FinalizeSignin(const std::string& secret) = 0;
|
| };
|
|
|
| } // namespace proximity_auth
|
|
|