| 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 "chrome/browser/chromeos/login/screens/gaia_screen.h" | 8 #include "chrome/browser/chromeos/login/screens/gaia_screen.h" |
| 9 #include "chrome/browser/chromeos/login/screens/user_selection_screen.h" | 9 #include "chrome/browser/chromeos/login/screens/user_selection_screen.h" |
| 10 #include "chrome/browser/chromeos/login/ui/login_display_host.h" | 10 #include "chrome/browser/chromeos/login/ui/login_display_host.h" |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 | 38 |
| 39 // Called when signin screen is ready. | 39 // Called when signin screen is ready. |
| 40 void OnSigninScreenReady(); | 40 void OnSigninScreenReady(); |
| 41 | 41 |
| 42 // Query to send list of users to user selection screen. | 42 // Query to send list of users to user selection screen. |
| 43 void SendUserList(); | 43 void SendUserList(); |
| 44 | 44 |
| 45 // Provide current list of users on user selection screen. | 45 // Provide current list of users on user selection screen. |
| 46 const user_manager::UserList& GetUsers(); | 46 const user_manager::UserList& GetUsers(); |
| 47 | 47 |
| 48 // Runs OAauth token validity check. |
| 49 void CheckUserStatus(const std::string& user_id); |
| 50 |
| 48 // Query to remove user with specified id. | 51 // Query to remove user with specified id. |
| 49 // TODO(antrim): move to user selection screen handler. | 52 // TODO(antrim): move to user selection screen handler. |
| 50 void RemoveUser(const std::string& user_id); | 53 void RemoveUser(const std::string& user_id); |
| 51 | 54 |
| 52 // user_manager::RemoveUserDelegate implementation: | 55 // user_manager::RemoveUserDelegate implementation: |
| 53 void OnBeforeUserRemoved(const std::string& username) override; | 56 void OnBeforeUserRemoved(const std::string& username) override; |
| 54 void OnUserRemoved(const std::string& username) override; | 57 void OnUserRemoved(const std::string& username) override; |
| 55 | 58 |
| 56 // content::NotificationObserver implementation. | 59 // content::NotificationObserver implementation. |
| 57 void Observe(int type, | 60 void Observe(int type, |
| (...skipping 13 matching lines...) Expand all Loading... |
| 71 | 74 |
| 72 // Used for notifications during the login process. | 75 // Used for notifications during the login process. |
| 73 content::NotificationRegistrar registrar_; | 76 content::NotificationRegistrar registrar_; |
| 74 | 77 |
| 75 DISALLOW_COPY_AND_ASSIGN(SignInScreenController); | 78 DISALLOW_COPY_AND_ASSIGN(SignInScreenController); |
| 76 }; | 79 }; |
| 77 | 80 |
| 78 } // namespace chromeos | 81 } // namespace chromeos |
| 79 | 82 |
| 80 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SIGNIN_SCREEN_CONTROLLER_H_ | 83 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SIGNIN_SCREEN_CONTROLLER_H_ |
| OLD | NEW |