| 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 COMPONENTS_USER_MANAGER_USER_H_ | 5 #ifndef COMPONENTS_USER_MANAGER_USER_H_ |
| 6 #define COMPONENTS_USER_MANAGER_USER_H_ | 6 #define COMPONENTS_USER_MANAGER_USER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 // Returns the user type. | 100 // Returns the user type. |
| 101 virtual UserType GetType() const = 0; | 101 virtual UserType GetType() const = 0; |
| 102 | 102 |
| 103 // Allows managing child status of the user. Used for RegularUser. | 103 // Allows managing child status of the user. Used for RegularUser. |
| 104 virtual void SetIsChild(bool is_child); | 104 virtual void SetIsChild(bool is_child); |
| 105 | 105 |
| 106 // Returns true if user has gaia account. True for users of types | 106 // Returns true if user has gaia account. True for users of types |
| 107 // USER_TYPE_REGULAR and USER_TYPE_CHILD. | 107 // USER_TYPE_REGULAR and USER_TYPE_CHILD. |
| 108 virtual bool HasGaiaAccount() const; | 108 virtual bool HasGaiaAccount() const; |
| 109 | 109 |
| 110 // Returns true if it's Active Directory user. |
| 111 virtual bool IsActiveDirectoryUser() const; |
| 112 |
| 110 // Returns true if user is supervised. | 113 // Returns true if user is supervised. |
| 111 virtual bool IsSupervised() const; | 114 virtual bool IsSupervised() const; |
| 112 | 115 |
| 113 // True if user image can be synced. | 116 // True if user image can be synced. |
| 114 virtual bool CanSyncImage() const; | 117 virtual bool CanSyncImage() const; |
| 115 | 118 |
| 116 // The displayed (non-canonical) user email. | 119 // The displayed (non-canonical) user email. |
| 117 virtual std::string display_email() const; | 120 virtual std::string display_email() const; |
| 118 | 121 |
| 119 // True if the user is affiliated to the device. | 122 // True if the user is affiliated to the device. |
| (...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 310 | 313 |
| 311 DISALLOW_COPY_AND_ASSIGN(User); | 314 DISALLOW_COPY_AND_ASSIGN(User); |
| 312 }; | 315 }; |
| 313 | 316 |
| 314 // List of known users. | 317 // List of known users. |
| 315 using UserList = std::vector<User*>; | 318 using UserList = std::vector<User*>; |
| 316 | 319 |
| 317 } // namespace user_manager | 320 } // namespace user_manager |
| 318 | 321 |
| 319 #endif // COMPONENTS_USER_MANAGER_USER_H_ | 322 #endif // COMPONENTS_USER_MANAGER_USER_H_ |
| OLD | NEW |