OLD | NEW |
---|---|
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_CHROMEOS_LOGIN_SUPERVISED_USER_CREATION_SCREEN_H ANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SUPERVISED_USER_CREATION_SCREEN_H ANDLER_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SUPERVISED_USER_CREATION_SCREEN_H ANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SUPERVISED_USER_CREATION_SCREEN_H ANDLER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 14 matching lines...) Expand all Loading... | |
25 public: | 25 public: |
26 virtual ~Delegate() {} | 26 virtual ~Delegate() {} |
27 | 27 |
28 // This method is called, when actor is being destroyed. Note, if Delegate | 28 // This method is called, when actor is being destroyed. Note, if Delegate |
29 // is destroyed earlier then it has to call SetDelegate(NULL). | 29 // is destroyed earlier then it has to call SetDelegate(NULL). |
30 virtual void OnActorDestroyed( | 30 virtual void OnActorDestroyed( |
31 SupervisedUserCreationScreenHandler* actor) = 0; | 31 SupervisedUserCreationScreenHandler* actor) = 0; |
32 | 32 |
33 // Starts supervised user creation flow, with manager identified by | 33 // Starts supervised user creation flow, with manager identified by |
34 // |manager_id| and |manager_password|. | 34 // |manager_id| and |manager_password|. |
35 virtual void AuthenticateManager(const std::string& manager_id, | 35 virtual void AuthenticateManager(const AccountId& manager_id, |
achuithb
2015/12/04 10:12:53
manager_account_id?
Alexander Alekseev
2015/12/04 12:44:07
Done.
| |
36 const std::string& manager_password) = 0; | 36 const std::string& manager_password) = 0; |
37 | 37 |
38 // Starts supervised user creation flow, with supervised user that would | 38 // Starts supervised user creation flow, with supervised user that would |
39 // have |display_name| and authenticated by the |supervised_user_password|. | 39 // have |display_name| and authenticated by the |supervised_user_password|. |
40 virtual void CreateSupervisedUser( | 40 virtual void CreateSupervisedUser( |
41 const base::string16& display_name, | 41 const base::string16& display_name, |
42 const std::string& supervised_user_password) = 0; | 42 const std::string& supervised_user_password) = 0; |
43 | 43 |
44 // Look up if user with name |display_name| already exist and can be | 44 // Look up if user with name |display_name| already exist and can be |
45 // imported. Returns user ID in |out_id|. Returns true if user was found, | 45 // imported. Returns user ID in |out_id|. Returns true if user was found, |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
133 void UpdateText(const std::string& element_id, const base::string16& text); | 133 void UpdateText(const std::string& element_id, const base::string16& text); |
134 | 134 |
135 Delegate* delegate_; | 135 Delegate* delegate_; |
136 | 136 |
137 DISALLOW_COPY_AND_ASSIGN(SupervisedUserCreationScreenHandler); | 137 DISALLOW_COPY_AND_ASSIGN(SupervisedUserCreationScreenHandler); |
138 }; | 138 }; |
139 | 139 |
140 } // namespace chromeos | 140 } // namespace chromeos |
141 | 141 |
142 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SUPERVISED_USER_CREATION_SCREE N_HANDLER_H_ | 142 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SUPERVISED_USER_CREATION_SCREE N_HANDLER_H_ |
OLD | NEW |