OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_UI_WEBUI_SIGNIN_USER_MANAGER_SCREEN_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_SIGNIN_USER_MANAGER_SCREEN_HANDLER_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_SIGNIN_USER_MANAGER_SCREEN_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_SIGNIN_USER_MANAGER_SCREEN_HANDLER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 const std::string& user_email, | 43 const std::string& user_email, |
44 const ScreenlockBridge::UserPodCustomIconOptions& icon_options) OVERRIDE; | 44 const ScreenlockBridge::UserPodCustomIconOptions& icon_options) OVERRIDE; |
45 virtual void HideUserPodCustomIcon(const std::string& user_email) OVERRIDE; | 45 virtual void HideUserPodCustomIcon(const std::string& user_email) OVERRIDE; |
46 virtual void EnableInput() OVERRIDE; | 46 virtual void EnableInput() OVERRIDE; |
47 virtual void SetAuthType(const std::string& user_email, | 47 virtual void SetAuthType(const std::string& user_email, |
48 ScreenlockBridge::LockHandler::AuthType auth_type, | 48 ScreenlockBridge::LockHandler::AuthType auth_type, |
49 const base::string16& auth_value) OVERRIDE; | 49 const base::string16& auth_value) OVERRIDE; |
50 virtual ScreenlockBridge::LockHandler::AuthType GetAuthType( | 50 virtual ScreenlockBridge::LockHandler::AuthType GetAuthType( |
51 const std::string& user_email) const OVERRIDE; | 51 const std::string& user_email) const OVERRIDE; |
52 virtual void Unlock(const std::string& user_email) OVERRIDE; | 52 virtual void Unlock(const std::string& user_email) OVERRIDE; |
| 53 virtual void AttemptEasySignin(const std::string& user_email, |
| 54 const std::string& secret, |
| 55 const std::string& key_label) OVERRIDE; |
53 | 56 |
54 private: | 57 private: |
55 // An observer for any changes to Profiles in the ProfileInfoCache so that | 58 // An observer for any changes to Profiles in the ProfileInfoCache so that |
56 // all the visible user manager screens can be updated. | 59 // all the visible user manager screens can be updated. |
57 class ProfileUpdateObserver; | 60 class ProfileUpdateObserver; |
58 | 61 |
59 void HandleInitialize(const base::ListValue* args); | 62 void HandleInitialize(const base::ListValue* args); |
60 void HandleAddUser(const base::ListValue* args); | 63 void HandleAddUser(const base::ListValue* args); |
61 void HandleAuthenticatedLaunchUser(const base::ListValue* args); | 64 void HandleAuthenticatedLaunchUser(const base::ListValue* args); |
62 void HandleLaunchGuest(const base::ListValue* args); | 65 void HandleLaunchGuest(const base::ListValue* args); |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 std::string password_attempt_; | 97 std::string password_attempt_; |
95 | 98 |
96 typedef std::map<std::string, ScreenlockBridge::LockHandler::AuthType> | 99 typedef std::map<std::string, ScreenlockBridge::LockHandler::AuthType> |
97 UserAuthTypeMap; | 100 UserAuthTypeMap; |
98 UserAuthTypeMap user_auth_type_map_; | 101 UserAuthTypeMap user_auth_type_map_; |
99 | 102 |
100 DISALLOW_COPY_AND_ASSIGN(UserManagerScreenHandler); | 103 DISALLOW_COPY_AND_ASSIGN(UserManagerScreenHandler); |
101 }; | 104 }; |
102 | 105 |
103 #endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_USER_MANAGER_SCREEN_HANDLER_H_ | 106 #endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_USER_MANAGER_SCREEN_HANDLER_H_ |
OLD | NEW |