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

Side by Side Diff: ash/login/lock_screen_controller.h

Issue 2937553002: Create Mojo Struct for user information used in login/lock screen. (Closed)
Patch Set: populate user's avatar Created 3 years, 6 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 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 24 matching lines...) Expand all
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 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 47
48 // Wrappers around the mojom::LockScreenClient interface. 48 // Wrappers around the mojom::LockScreenClient interface.
49 // Hash the password and send AuthenticateUser request to LockScreenClient. 49 // Hash the password and send AuthenticateUser request to LockScreenClient.
50 // LockScreenClient(chrome) will do the authentication and request to show 50 // LockScreenClient(chrome) will do the authentication and request to show
51 // error messages in the lock screen if auth fails, or request to clear 51 // error messages in the lock screen if auth fails, or request to clear
52 // errors if auth succeeds. 52 // errors if auth succeeds.
53 void AuthenticateUser( 53 void AuthenticateUser(
54 const AccountId& account_id, 54 const AccountId& account_id,
55 const std::string& password, 55 const std::string& password,
(...skipping 24 matching lines...) Expand all
80 80
81 // User authentication call that will run when we have system salt. 81 // User authentication call that will run when we have system salt.
82 PendingAuthenticateUserCall pending_user_auth_; 82 PendingAuthenticateUserCall pending_user_auth_;
83 83
84 DISALLOW_COPY_AND_ASSIGN(LockScreenController); 84 DISALLOW_COPY_AND_ASSIGN(LockScreenController);
85 }; 85 };
86 86
87 } // namespace ash 87 } // namespace ash
88 88
89 #endif // ASH_LOGIN_LOCK_SCREEN_CONTROLLER_H_ 89 #endif // ASH_LOGIN_LOCK_SCREEN_CONTROLLER_H_
OLDNEW
« no previous file with comments | « no previous file | ash/login/lock_screen_controller.cc » ('j') | ash/public/interfaces/login_user_info.mojom » ('J')

Powered by Google App Engine
This is Rietveld 408576698