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 28 matching lines...) Expand all Loading... |
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. | 48 // Runs OAauth token validity check. |
49 void CheckUserStatus(const std::string& user_id); | 49 void CheckUserStatus(const user_manager::UserID& user_id); |
50 | 50 |
51 // Query to remove user with specified id. | 51 // Query to remove user with specified id. |
52 // TODO(antrim): move to user selection screen handler. | 52 // TODO(antrim): move to user selection screen handler. |
53 void RemoveUser(const std::string& user_id); | 53 void RemoveUser(const user_manager::UserID& user_id); |
54 | 54 |
55 // user_manager::RemoveUserDelegate implementation: | 55 // user_manager::RemoveUserDelegate implementation: |
56 void OnBeforeUserRemoved(const std::string& username) override; | 56 void OnBeforeUserRemoved(const user_manager::UserID& user_id) override; |
57 void OnUserRemoved(const std::string& username) override; | 57 void OnUserRemoved(const user_manager::UserID& user_id) override; |
58 | 58 |
59 // content::NotificationObserver implementation. | 59 // content::NotificationObserver implementation. |
60 void Observe(int type, | 60 void Observe(int type, |
61 const content::NotificationSource& source, | 61 const content::NotificationSource& source, |
62 const content::NotificationDetails& details) override; | 62 const content::NotificationDetails& details) override; |
63 | 63 |
64 private: | 64 private: |
65 static SignInScreenController* instance_; | 65 static SignInScreenController* instance_; |
66 | 66 |
67 OobeDisplay* oobe_display_; | 67 OobeDisplay* oobe_display_; |
68 | 68 |
69 // Reference to the WebUI handling layer for the login screen | 69 // Reference to the WebUI handling layer for the login screen |
70 LoginDisplayWebUIHandler* webui_handler_; | 70 LoginDisplayWebUIHandler* webui_handler_; |
71 | 71 |
72 scoped_ptr<GaiaScreen> gaia_screen_; | 72 scoped_ptr<GaiaScreen> gaia_screen_; |
73 scoped_ptr<UserSelectionScreen> user_selection_screen_; | 73 scoped_ptr<UserSelectionScreen> user_selection_screen_; |
74 | 74 |
75 // Used for notifications during the login process. | 75 // Used for notifications during the login process. |
76 content::NotificationRegistrar registrar_; | 76 content::NotificationRegistrar registrar_; |
77 | 77 |
78 DISALLOW_COPY_AND_ASSIGN(SignInScreenController); | 78 DISALLOW_COPY_AND_ASSIGN(SignInScreenController); |
79 }; | 79 }; |
80 | 80 |
81 } // namespace chromeos | 81 } // namespace chromeos |
82 | 82 |
83 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SIGNIN_SCREEN_CONTROLLER_H_ | 83 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SIGNIN_SCREEN_CONTROLLER_H_ |
OLD | NEW |