| 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 // Returns the user type. | 97 // Returns the user type. |
| 98 virtual UserType GetType() const = 0; | 98 virtual UserType GetType() const = 0; |
| 99 | 99 |
| 100 // Allows managing child status of the user. Used for RegularUser. | 100 // Allows managing child status of the user. Used for RegularUser. |
| 101 virtual void SetIsChild(bool is_child); | 101 virtual void SetIsChild(bool is_child); |
| 102 | 102 |
| 103 // Returns true if user has gaia account. True for users of types | 103 // Returns true if user has gaia account. True for users of types |
| 104 // USER_TYPE_REGULAR and USER_TYPE_CHILD. | 104 // USER_TYPE_REGULAR and USER_TYPE_CHILD. |
| 105 virtual bool HasGaiaAccount() const; | 105 virtual bool HasGaiaAccount() const; |
| 106 | 106 |
| 107 // Returns true if it's Active Directory user. |
| 108 virtual bool IsAdUser() const; |
| 109 |
| 107 // Returns true if user is supervised. | 110 // Returns true if user is supervised. |
| 108 virtual bool IsSupervised() const; | 111 virtual bool IsSupervised() const; |
| 109 | 112 |
| 110 // True if user image can be synced. | 113 // True if user image can be synced. |
| 111 virtual bool CanSyncImage() const; | 114 virtual bool CanSyncImage() const; |
| 112 | 115 |
| 113 // The displayed (non-canonical) user email. | 116 // The displayed (non-canonical) user email. |
| 114 virtual std::string display_email() const; | 117 virtual std::string display_email() const; |
| 115 | 118 |
| 116 // True if the user is affiliated to the device. | 119 // True if the user is affiliated to the device. |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 302 | 305 |
| 303 DISALLOW_COPY_AND_ASSIGN(User); | 306 DISALLOW_COPY_AND_ASSIGN(User); |
| 304 }; | 307 }; |
| 305 | 308 |
| 306 // List of known users. | 309 // List of known users. |
| 307 using UserList = std::vector<User*>; | 310 using UserList = std::vector<User*>; |
| 308 | 311 |
| 309 } // namespace user_manager | 312 } // namespace user_manager |
| 310 | 313 |
| 311 #endif // COMPONENTS_USER_MANAGER_USER_H_ | 314 #endif // COMPONENTS_USER_MANAGER_USER_H_ |
| OLD | NEW |