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

Side by Side Diff: chrome/browser/ui/webui/signin/user_manager_screen_handler.h

Issue 2937553002: Create Mojo Struct for user information used in login/lock screen. (Closed)
Patch Set: rebase 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 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 <memory> 9 #include <memory>
10 #include <string> 10 #include <string>
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 const content::NotificationDetails& details) override; 57 const content::NotificationDetails& details) override;
58 58
59 // proximity_auth::ScreenlockBridge::LockHandler implementation. 59 // proximity_auth::ScreenlockBridge::LockHandler implementation.
60 void ShowBannerMessage(const base::string16& message) override; 60 void ShowBannerMessage(const base::string16& message) override;
61 void ShowUserPodCustomIcon( 61 void ShowUserPodCustomIcon(
62 const AccountId& account_id, 62 const AccountId& account_id,
63 const proximity_auth::ScreenlockBridge::UserPodCustomIconOptions& 63 const proximity_auth::ScreenlockBridge::UserPodCustomIconOptions&
64 icon_options) override; 64 icon_options) override;
65 void HideUserPodCustomIcon(const AccountId& account_id) override; 65 void HideUserPodCustomIcon(const AccountId& account_id) override;
66 void EnableInput() override; 66 void EnableInput() override;
67 void SetAuthType( 67 void SetAuthType(const AccountId& account_id,
68 const AccountId& account_id, 68 proximity_auth::mojom::AuthType auth_type,
69 proximity_auth::ScreenlockBridge::LockHandler::AuthType auth_type, 69 const base::string16& auth_value) override;
70 const base::string16& auth_value) override; 70 proximity_auth::mojom::AuthType GetAuthType(
71 AuthType GetAuthType(const AccountId& account_id) const override; 71 const AccountId& account_id) const override;
72 ScreenType GetScreenType() const override; 72 ScreenType GetScreenType() const override;
73 void Unlock(const AccountId& account_id) override; 73 void Unlock(const AccountId& account_id) override;
74 void AttemptEasySignin(const AccountId& account_id, 74 void AttemptEasySignin(const AccountId& account_id,
75 const std::string& secret, 75 const std::string& secret,
76 const std::string& key_label) override; 76 const std::string& key_label) override;
77 77
78 void HandleInitialize(const base::ListValue* args); 78 void HandleInitialize(const base::ListValue* args);
79 void HandleAuthenticatedLaunchUser(const base::ListValue* args); 79 void HandleAuthenticatedLaunchUser(const base::ListValue* args);
80 void HandleLaunchGuest(const base::ListValue* args); 80 void HandleLaunchGuest(const base::ListValue* args);
81 void HandleLaunchUser(const base::ListValue* args); 81 void HandleLaunchUser(const base::ListValue* args);
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 123
124 // The path of the profile currently being authenticated. 124 // The path of the profile currently being authenticated.
125 base::FilePath authenticating_profile_path_; 125 base::FilePath authenticating_profile_path_;
126 126
127 // Login email held during on-line auth for later use. 127 // Login email held during on-line auth for later use.
128 std::string email_address_; 128 std::string email_address_;
129 129
130 // URL hash, used to key post-profile actions if present. 130 // URL hash, used to key post-profile actions if present.
131 std::string url_hash_; 131 std::string url_hash_;
132 132
133 typedef std::map<std::string, 133 typedef std::map<std::string, proximity_auth::mojom::AuthType>
134 proximity_auth::ScreenlockBridge::LockHandler::AuthType>
135 UserAuthTypeMap; 134 UserAuthTypeMap;
136 UserAuthTypeMap user_auth_type_map_; 135 UserAuthTypeMap user_auth_type_map_;
137 136
138 content::NotificationRegistrar registrar_; 137 content::NotificationRegistrar registrar_;
139 138
140 // The CancelableTaskTracker is currently used by GetProfileStatistics 139 // The CancelableTaskTracker is currently used by GetProfileStatistics
141 base::CancelableTaskTracker tracker_; 140 base::CancelableTaskTracker tracker_;
142 141
143 base::WeakPtrFactory<UserManagerScreenHandler> weak_ptr_factory_; 142 base::WeakPtrFactory<UserManagerScreenHandler> weak_ptr_factory_;
144 143
145 DISALLOW_COPY_AND_ASSIGN(UserManagerScreenHandler); 144 DISALLOW_COPY_AND_ASSIGN(UserManagerScreenHandler);
146 }; 145 };
147 146
148 #endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_USER_MANAGER_SCREEN_HANDLER_H_ 147 #endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_USER_MANAGER_SCREEN_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698