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

Unified Diff: chrome/browser/signin/easy_unlock_service_signin_chromeos.h

Issue 576383002: easy-signin: Wire GetSignInChallenge. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase, add fake key Created 6 years, 3 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: chrome/browser/signin/easy_unlock_service_signin_chromeos.h
diff --git a/chrome/browser/signin/easy_unlock_service_signin_chromeos.h b/chrome/browser/signin/easy_unlock_service_signin_chromeos.h
index ef2f7cfa3207e8e9cc63abca1744ed10ec8b438b..980afc5169d422c691d833294b4f0cc0a15f147e 100644
--- a/chrome/browser/signin/easy_unlock_service_signin_chromeos.h
+++ b/chrome/browser/signin/easy_unlock_service_signin_chromeos.h
@@ -8,14 +8,24 @@
#include <string>
#include "base/macros.h"
+#include "base/memory/scoped_ptr.h"
+#include "base/memory/weak_ptr.h"
+#include "chrome/browser/chromeos/login/easy_unlock/easy_unlock_types.h"
#include "chrome/browser/signin/easy_unlock_service.h"
+namespace base {
+class DictionaryValue;
+class ListValue;
+}
+
// EasyUnlockService instance that should be used for signin profile.
class EasyUnlockServiceSignin : public EasyUnlockService {
public:
explicit EasyUnlockServiceSignin(Profile* profile);
virtual ~EasyUnlockServiceSignin();
+ void SetAssociatedUser(const std::string& user_id);
+
private:
// EasyUnlockService implementation:
virtual EasyUnlockService::Type GetType() const OVERRIDE;
@@ -30,9 +40,27 @@ class EasyUnlockServiceSignin : public EasyUnlockService {
virtual void RunTurnOffFlow() OVERRIDE;
virtual void ResetTurnOffFlow() OVERRIDE;
virtual TurnOffFlowStatus GetTurnOffFlowStatus() const OVERRIDE;
+ virtual std::string GetChallenge() const OVERRIDE;
virtual bool IsAllowedInternal() OVERRIDE;
virtual void InitializeInternal() OVERRIDE;
+ // Fetches |remote_devices_| info from cryptohome keys.
+ void FetchCryptohomeKeys();
+
+ // Callback invoked when the cryptohome keys are fetched.
+ void OnCryptohomeKeysFetched(
+ bool success,
+ const chromeos::EasyUnlockDeviceKeyDataList& devices);
+
+ // User id of the associated user.
+ std::string user_id_;
+
+ // Remote devices of the associated user.
+ chromeos::EasyUnlockDeviceKeyDataList remote_devices_;
+ scoped_ptr<base::ListValue> remote_devices_value_;
+
+ base::WeakPtrFactory<EasyUnlockServiceSignin> weak_ptr_factory_;
+
DISALLOW_COPY_AND_ASSIGN(EasyUnlockServiceSignin);
};
« no previous file with comments | « chrome/browser/signin/easy_unlock_service_regular.cc ('k') | chrome/browser/signin/easy_unlock_service_signin_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698