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

Side by Side Diff: chrome/browser/chromeos/login/existing_user_controller.h

Issue 2685793004: Chromad: Wire up displayName and givenName (Closed)
Patch Set: Created 3 years, 10 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 void MigrateUserData(const std::string& old_password) override; 91 void MigrateUserData(const std::string& old_password) override;
92 void OnSigninScreenReady() override; 92 void OnSigninScreenReady() override;
93 void OnGaiaScreenReady() override; 93 void OnGaiaScreenReady() override;
94 void OnStartEnterpriseEnrollment() override; 94 void OnStartEnterpriseEnrollment() override;
95 void OnStartEnableDebuggingScreen() override; 95 void OnStartEnableDebuggingScreen() override;
96 void OnStartKioskEnableScreen() override; 96 void OnStartKioskEnableScreen() override;
97 void OnStartKioskAutolaunchScreen() override; 97 void OnStartKioskAutolaunchScreen() override;
98 void ResetAutoLoginTimer() override; 98 void ResetAutoLoginTimer() override;
99 void ResyncUserData() override; 99 void ResyncUserData() override;
100 void SetDisplayEmail(const std::string& email) override; 100 void SetDisplayEmail(const std::string& email) override;
101 void SetDisplayName(const std::string& display_name) override;
102 void SetGivenName(const std::string& given_name) override;
101 void ShowWrongHWIDScreen() override; 103 void ShowWrongHWIDScreen() override;
102 void Signout() override; 104 void Signout() override;
103 bool IsUserWhitelisted(const AccountId& account_id) override; 105 bool IsUserWhitelisted(const AccountId& account_id) override;
104 106
105 // content::NotificationObserver implementation. 107 // content::NotificationObserver implementation.
106 void Observe(int type, 108 void Observe(int type,
107 const content::NotificationSource& source, 109 const content::NotificationSource& source,
108 const content::NotificationDetails& details) override; 110 const content::NotificationDetails& details) override;
109 111
110 // ArcKioskAppManager::ArcKioskAppManagerObserver overrides. 112 // ArcKioskAppManager::ArcKioskAppManagerObserver overrides.
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 const UserContext& user_context); 256 const UserContext& user_context);
255 257
256 // Callback invoked when |oauth2_token_initializer_| has finished. 258 // Callback invoked when |oauth2_token_initializer_| has finished.
257 void OnOAuth2TokensFetched(bool success, const UserContext& user_context); 259 void OnOAuth2TokensFetched(bool success, const UserContext& user_context);
258 260
259 // Callback invoked when |token_handle_util_| finishes token check. 261 // Callback invoked when |token_handle_util_| finishes token check.
260 void OnTokenHandleChecked( 262 void OnTokenHandleChecked(
261 const AccountId&, 263 const AccountId&,
262 TokenHandleUtil::TokenHandleStatus token_handle_status); 264 TokenHandleUtil::TokenHandleStatus token_handle_status);
263 265
266 // Clear the recorded displayed email, displayed name, given name so it won't
267 // affect any future attempts.
268 void ClearRecoredNames();
xiyuan 2017/02/08 22:59:57 ClearRecoredNames -> ClearRecor*d*edNames
Roman Sorokin (ftl) 2017/02/09 10:50:47 Oops. Done!
269
264 // Public session auto-login timer. 270 // Public session auto-login timer.
265 std::unique_ptr<base::OneShotTimer> auto_login_timer_; 271 std::unique_ptr<base::OneShotTimer> auto_login_timer_;
266 272
267 // Auto-login timeout, in milliseconds. 273 // Auto-login timeout, in milliseconds.
268 int auto_login_delay_; 274 int auto_login_delay_;
269 275
270 // AccountId for public session auto-login. 276 // AccountId for public session auto-login.
271 AccountId public_session_auto_login_account_id_ = EmptyAccountId(); 277 AccountId public_session_auto_login_account_id_ = EmptyAccountId();
272 278
273 // AccountId for ARC kiosk auto-login. 279 // AccountId for ARC kiosk auto-login.
(...skipping 28 matching lines...) Expand all
302 308
303 // URL to append to start Guest mode with. 309 // URL to append to start Guest mode with.
304 GURL guest_mode_url_; 310 GURL guest_mode_url_;
305 311
306 // Used for notifications during the login process. 312 // Used for notifications during the login process.
307 content::NotificationRegistrar registrar_; 313 content::NotificationRegistrar registrar_;
308 314
309 // The displayed email for the next login attempt set by |SetDisplayEmail|. 315 // The displayed email for the next login attempt set by |SetDisplayEmail|.
310 std::string display_email_; 316 std::string display_email_;
311 317
318 // The displayed name for the next login attempt set by |SetDisplayName|.
319 base::string16 display_name_;
320
321 // The given name for the next login attempt set by |SetGivenName|.
322 base::string16 given_name_;
323
312 // Whether login attempt is running. 324 // Whether login attempt is running.
313 bool is_login_in_progress_ = false; 325 bool is_login_in_progress_ = false;
314 326
315 // True if password has been changed for user who is completing sign in. 327 // True if password has been changed for user who is completing sign in.
316 // Set in OnLoginSuccess. Before that use LoginPerformer::password_changed(). 328 // Set in OnLoginSuccess. Before that use LoginPerformer::password_changed().
317 bool password_changed_ = false; 329 bool password_changed_ = false;
318 330
319 // Set in OnLoginSuccess. Before that use LoginPerformer::auth_mode(). 331 // Set in OnLoginSuccess. Before that use LoginPerformer::auth_mode().
320 // Initialized with AUTH_MODE_EXTENSION as more restricted mode. 332 // Initialized with AUTH_MODE_EXTENSION as more restricted mode.
321 LoginPerformer::AuthorizationMode auth_mode_ = 333 LoginPerformer::AuthorizationMode auth_mode_ =
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 373
362 // Factory of callbacks. 374 // Factory of callbacks.
363 base::WeakPtrFactory<ExistingUserController> weak_factory_; 375 base::WeakPtrFactory<ExistingUserController> weak_factory_;
364 376
365 DISALLOW_COPY_AND_ASSIGN(ExistingUserController); 377 DISALLOW_COPY_AND_ASSIGN(ExistingUserController);
366 }; 378 };
367 379
368 } // namespace chromeos 380 } // namespace chromeos
369 381
370 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_ 382 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698