OLD | NEW |
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_SIGNIN_SCREEN_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SIGNIN_SCREEN_CONTROLLER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SIGNIN_SCREEN_CONTROLLER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SIGNIN_SCREEN_CONTROLLER_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
10 #include "chrome/browser/chromeos/login/screens/gaia_screen.h" | 10 #include "chrome/browser/chromeos/login/screens/gaia_screen.h" |
(...skipping 26 matching lines...) Expand all Loading... |
37 LoginDisplay::Delegate* login_display_delegate); | 37 LoginDisplay::Delegate* login_display_delegate); |
38 ~SignInScreenController() override; | 38 ~SignInScreenController() override; |
39 | 39 |
40 // Returns the default wizard controller if it has been created. | 40 // Returns the default wizard controller if it has been created. |
41 static SignInScreenController* Get() { return instance_; } | 41 static SignInScreenController* Get() { return instance_; } |
42 | 42 |
43 void SetWebUIHandler(LoginDisplayWebUIHandler* webui_handler); | 43 void SetWebUIHandler(LoginDisplayWebUIHandler* webui_handler); |
44 | 44 |
45 // Set up the list of users for user selection screen. | 45 // Set up the list of users for user selection screen. |
46 // TODO(antrim): replace with querying for this data. | 46 // TODO(antrim): replace with querying for this data. |
47 void Init(const user_manager::UserList& users, bool show_guest); | 47 void Init(const user_manager::UserList& users); |
48 | 48 |
49 // Called when signin screen is ready. | 49 // Called when signin screen is ready. |
50 void OnSigninScreenReady(); | 50 void OnSigninScreenReady(); |
51 | 51 |
52 // Query to send list of users to user selection screen. | 52 // Query to send list of users to user selection screen. |
53 void SendUserList(); | 53 void SendUserList(); |
54 | 54 |
55 // Runs OAauth token validity check. | 55 // Runs OAauth token validity check. |
56 void CheckUserStatus(const AccountId& account_id); | 56 void CheckUserStatus(const AccountId& account_id); |
57 | 57 |
(...skipping 28 matching lines...) Expand all Loading... |
86 | 86 |
87 // Used for notifications during the login process. | 87 // Used for notifications during the login process. |
88 content::NotificationRegistrar registrar_; | 88 content::NotificationRegistrar registrar_; |
89 | 89 |
90 DISALLOW_COPY_AND_ASSIGN(SignInScreenController); | 90 DISALLOW_COPY_AND_ASSIGN(SignInScreenController); |
91 }; | 91 }; |
92 | 92 |
93 } // namespace chromeos | 93 } // namespace chromeos |
94 | 94 |
95 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SIGNIN_SCREEN_CONTROLLER_H_ | 95 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SIGNIN_SCREEN_CONTROLLER_H_ |
OLD | NEW |