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 <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 base::string16 display_name() const { return display_name_; } | 90 base::string16 display_name() const { return display_name_; } |
91 | 91 |
92 // If the user has to use SAML to log in. | 92 // If the user has to use SAML to log in. |
93 bool using_saml() const { return using_saml_; } | 93 bool using_saml() const { return using_saml_; } |
94 | 94 |
95 // UserInfo | 95 // UserInfo |
96 std::string GetEmail() const override; | 96 std::string GetEmail() const override; |
97 base::string16 GetDisplayName() const override; | 97 base::string16 GetDisplayName() const override; |
98 base::string16 GetGivenName() const override; | 98 base::string16 GetGivenName() const override; |
99 const gfx::ImageSkia& GetImage() const override; | 99 const gfx::ImageSkia& GetImage() const override; |
100 const AccountId& GetAccountId() const override; | 100 AccountId GetAccountId() const override; |
101 | 101 |
102 // Allows managing child status of the user. Used for RegularUser. | 102 // Allows managing child status of the user. Used for RegularUser. |
103 virtual void SetIsChild(bool is_child); | 103 virtual void SetIsChild(bool is_child); |
104 | 104 |
105 // Returns true if user has gaia account. True for users of types | 105 // Returns true if user has gaia account. True for users of types |
106 // USER_TYPE_REGULAR and USER_TYPE_CHILD. | 106 // USER_TYPE_REGULAR and USER_TYPE_CHILD. |
107 virtual bool HasGaiaAccount() const; | 107 virtual bool HasGaiaAccount() const; |
108 | 108 |
109 // Returns true if user is supervised. | 109 // Returns true if user is supervised. |
110 virtual bool IsSupervised() const; | 110 virtual bool IsSupervised() const; |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
298 | 298 |
299 DISALLOW_COPY_AND_ASSIGN(User); | 299 DISALLOW_COPY_AND_ASSIGN(User); |
300 }; | 300 }; |
301 | 301 |
302 // List of known users. | 302 // List of known users. |
303 using UserList = std::vector<User*>; | 303 using UserList = std::vector<User*>; |
304 | 304 |
305 } // namespace user_manager | 305 } // namespace user_manager |
306 | 306 |
307 #endif // COMPONENTS_USER_MANAGER_USER_H_ | 307 #endif // COMPONENTS_USER_MANAGER_USER_H_ |
OLD | NEW |