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

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: Fix destruction order in tests on ChromeOS Created 5 years, 4 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
« no previous file with comments | « components/proximity_auth/metrics.cc ('k') | components/proximity_auth/proximity_monitor_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « components/proximity_auth/metrics.cc ('k') | components/proximity_auth/proximity_monitor_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698