Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(722)

Unified Diff: components/proximity_auth/proximity_auth_client.h

Issue 1239193005: [Proximity Auth] Port the UnlockManager class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 7a26778728e6f3b75dfd52c6a122472f8cc64e98..1420479a563fbd9df5d6dbceb126a8c0f1924ca4 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
@@ -18,6 +20,18 @@ 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 the previously started auth attempt for unlock. Cancels the
+ // current auth attempt if one exists.
+ virtual void FinalizeUnlock(bool success) = 0;
+
+ // Finalizes the previously started auth attempt for sign-in. Cancels the
+ // current auth attempt if one exists.
+ virtual void FinalizeSignin(const std::string& secret) = 0;
};
} // namespace proximity_auth

Powered by Google App Engine
This is Rietveld 408576698