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

Side by Side Diff: chrome/browser/signin/easy_unlock_service_signin_chromeos.h

Issue 592893002: Rename ScreelockBridge to SigninScreenBridge Base URL: https://chromium.googlesource.com/chromium/src.git@easy_signin_auth_handler
Patch Set: Created 6 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SERVICE_SIGNIN_CHROMEOS_H_ 5 #ifndef CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SERVICE_SIGNIN_CHROMEOS_H_
6 #define CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SERVICE_SIGNIN_CHROMEOS_H_ 6 #define CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SERVICE_SIGNIN_CHROMEOS_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/memory/weak_ptr.h" 13 #include "base/memory/weak_ptr.h"
14 #include "base/values.h" 14 #include "base/values.h"
15 #include "chrome/browser/chromeos/login/easy_unlock/easy_unlock_types.h" 15 #include "chrome/browser/chromeos/login/easy_unlock/easy_unlock_types.h"
16 #include "chrome/browser/signin/easy_unlock_service.h" 16 #include "chrome/browser/signin/easy_unlock_service.h"
17 #include "chrome/browser/signin/screenlock_bridge.h" 17 #include "chrome/browser/signin/signin_screen_bridge.h"
18 #include "chromeos/login/login_state.h" 18 #include "chromeos/login/login_state.h"
19 19
20 // EasyUnlockService instance that should be used for signin profile. 20 // EasyUnlockService instance that should be used for signin profile.
21 class EasyUnlockServiceSignin : public EasyUnlockService, 21 class EasyUnlockServiceSignin : public EasyUnlockService,
22 public ScreenlockBridge::Observer, 22 public SigninScreenBridge::Observer,
23 public chromeos::LoginState::Observer { 23 public chromeos::LoginState::Observer {
24 public: 24 public:
25 explicit EasyUnlockServiceSignin(Profile* profile); 25 explicit EasyUnlockServiceSignin(Profile* profile);
26 virtual ~EasyUnlockServiceSignin(); 26 virtual ~EasyUnlockServiceSignin();
27 27
28 private: 28 private:
29 // The load state of a user's cryptohome key data. 29 // The load state of a user's cryptohome key data.
30 enum UserDataState { 30 enum UserDataState {
31 // Initial state, the key data is empty and not being loaded. 31 // Initial state, the key data is empty and not being loaded.
32 USER_DATA_STATE_INITIAL, 32 USER_DATA_STATE_INITIAL,
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 virtual void ClearRemoteDevices() OVERRIDE; 67 virtual void ClearRemoteDevices() OVERRIDE;
68 virtual void RunTurnOffFlow() OVERRIDE; 68 virtual void RunTurnOffFlow() OVERRIDE;
69 virtual void ResetTurnOffFlow() OVERRIDE; 69 virtual void ResetTurnOffFlow() OVERRIDE;
70 virtual TurnOffFlowStatus GetTurnOffFlowStatus() const OVERRIDE; 70 virtual TurnOffFlowStatus GetTurnOffFlowStatus() const OVERRIDE;
71 virtual std::string GetChallenge() const OVERRIDE; 71 virtual std::string GetChallenge() const OVERRIDE;
72 virtual std::string GetWrappedSecret() const OVERRIDE; 72 virtual std::string GetWrappedSecret() const OVERRIDE;
73 virtual void InitializeInternal() OVERRIDE; 73 virtual void InitializeInternal() OVERRIDE;
74 virtual void ShutdownInternal() OVERRIDE; 74 virtual void ShutdownInternal() OVERRIDE;
75 virtual bool IsAllowedInternal() OVERRIDE; 75 virtual bool IsAllowedInternal() OVERRIDE;
76 76
77 // ScreenlockBridge::Observer implementation: 77 // SigninScreenBridge::Observer implementation:
78 virtual void OnScreenDidLock() OVERRIDE; 78 virtual void OnScreenDidLock() OVERRIDE;
79 virtual void OnScreenDidUnlock() OVERRIDE; 79 virtual void OnScreenDidUnlock() OVERRIDE;
80 virtual void OnFocusedUserChanged(const std::string& user_id) OVERRIDE; 80 virtual void OnFocusedUserChanged(const std::string& user_id) OVERRIDE;
81 81
82 // chromeos::LoginState::Observer implementation: 82 // chromeos::LoginState::Observer implementation:
83 virtual void LoggedInStateChanged() OVERRIDE; 83 virtual void LoggedInStateChanged() OVERRIDE;
84 84
85 // Loads the device data associated with the user's Easy unlock keys from 85 // Loads the device data associated with the user's Easy unlock keys from
86 // crypthome. 86 // crypthome.
87 void LoadCurrentUserDataIfNeeded(); 87 void LoadCurrentUserDataIfNeeded();
(...skipping 23 matching lines...) Expand all
111 // Whether the service has been successfully initialized, and has not been 111 // Whether the service has been successfully initialized, and has not been
112 // shut down. 112 // shut down.
113 bool service_active_; 113 bool service_active_;
114 114
115 base::WeakPtrFactory<EasyUnlockServiceSignin> weak_ptr_factory_; 115 base::WeakPtrFactory<EasyUnlockServiceSignin> weak_ptr_factory_;
116 116
117 DISALLOW_COPY_AND_ASSIGN(EasyUnlockServiceSignin); 117 DISALLOW_COPY_AND_ASSIGN(EasyUnlockServiceSignin);
118 }; 118 };
119 119
120 #endif // CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SERVICE_SIGNIN_CHROMEOS_H_ 120 #endif // CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SERVICE_SIGNIN_CHROMEOS_H_
OLDNEW
« 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