OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 ASH_LOGIN_LOCK_SCREEN_CONTROLLER_H_ | 5 #ifndef ASH_LOGIN_LOCK_SCREEN_CONTROLLER_H_ |
6 #define ASH_LOGIN_LOCK_SCREEN_CONTROLLER_H_ | 6 #define ASH_LOGIN_LOCK_SCREEN_CONTROLLER_H_ |
7 | 7 |
8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
9 #include "ash/public/interfaces/lock_screen.mojom.h" | 9 #include "ash/public/interfaces/lock_screen.mojom.h" |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 22 matching lines...) Expand all Loading... |
33 void ShowLockScreen(ShowLockScreenCallback callback) override; | 33 void ShowLockScreen(ShowLockScreenCallback callback) override; |
34 void ShowErrorMessage(int32_t login_attempts, | 34 void ShowErrorMessage(int32_t login_attempts, |
35 const std::string& error_text, | 35 const std::string& error_text, |
36 const std::string& help_link_text, | 36 const std::string& help_link_text, |
37 int32_t help_topic_id) override; | 37 int32_t help_topic_id) override; |
38 void ClearErrors() override; | 38 void ClearErrors() override; |
39 void ShowUserPodCustomIcon(const AccountId& account_id, | 39 void ShowUserPodCustomIcon(const AccountId& account_id, |
40 mojom::UserPodCustomIconOptionsPtr icon) override; | 40 mojom::UserPodCustomIconOptionsPtr icon) override; |
41 void HideUserPodCustomIcon(const AccountId& account_id) override; | 41 void HideUserPodCustomIcon(const AccountId& account_id) override; |
42 void SetAuthType(const AccountId& account_id, | 42 void SetAuthType(const AccountId& account_id, |
43 mojom::AuthType auth_type, | 43 proximity_auth::mojom::AuthType auth_type, |
44 const base::string16& initial_value) override; | 44 const base::string16& initial_value) override; |
45 void LoadUsers(std::unique_ptr<base::ListValue> users, | 45 void LoadUsers(std::vector<mojom::LoginUserInfoPtr> users, |
46 bool show_guest) override; | 46 bool show_guest) override; |
47 void SetPinEnabledForUser(const AccountId& account_id, | 47 void SetPinEnabledForUser(const AccountId& account_id, |
48 bool is_enabled) override; | 48 bool is_enabled) override; |
49 | 49 |
50 // Wrappers around the mojom::LockScreenClient interface. | 50 // Wrappers around the mojom::LockScreenClient interface. |
51 // Hash the password and send AuthenticateUser request to LockScreenClient. | 51 // Hash the password and send AuthenticateUser request to LockScreenClient. |
52 // LockScreenClient(chrome) will do the authentication and request to show | 52 // LockScreenClient(chrome) will do the authentication and request to show |
53 // error messages in the lock screen if auth fails, or request to clear | 53 // error messages in the lock screen if auth fails, or request to clear |
54 // errors if auth succeeds. | 54 // errors if auth succeeds. |
55 void AuthenticateUser( | 55 void AuthenticateUser( |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 | 87 |
88 // User authentication call that will run when we have system salt. | 88 // User authentication call that will run when we have system salt. |
89 PendingAuthenticateUserCall pending_user_auth_; | 89 PendingAuthenticateUserCall pending_user_auth_; |
90 | 90 |
91 DISALLOW_COPY_AND_ASSIGN(LockScreenController); | 91 DISALLOW_COPY_AND_ASSIGN(LockScreenController); |
92 }; | 92 }; |
93 | 93 |
94 } // namespace ash | 94 } // namespace ash |
95 | 95 |
96 #endif // ASH_LOGIN_LOCK_SCREEN_CONTROLLER_H_ | 96 #endif // ASH_LOGIN_LOCK_SCREEN_CONTROLLER_H_ |
OLD | NEW |