| 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 WALLPAPER_TYPE_COUNT = 7 | 79 WALLPAPER_TYPE_COUNT = 7 |
| 80 }; | 80 }; |
| 81 | 81 |
| 82 // Returns true if user type has gaia account. | 82 // Returns true if user type has gaia account. |
| 83 static bool TypeHasGaiaAccount(UserType user_type); | 83 static bool TypeHasGaiaAccount(UserType user_type); |
| 84 | 84 |
| 85 explicit User(const AccountId& account_id); | 85 explicit User(const AccountId& account_id); |
| 86 ~User() override; | 86 ~User() override; |
| 87 | 87 |
| 88 // UserInfo | 88 // UserInfo |
| 89 std::string GetEmail() const override; | 89 std::string GetDisplayEmail() const override; |
| 90 base::string16 GetDisplayName() const override; | 90 base::string16 GetDisplayName() const override; |
| 91 base::string16 GetGivenName() const override; | 91 base::string16 GetGivenName() const override; |
| 92 const gfx::ImageSkia& GetImage() const override; | 92 const gfx::ImageSkia& GetImage() const override; |
| 93 const AccountId& GetAccountId() const override; | 93 const AccountId& GetAccountId() const override; |
| 94 | 94 |
| 95 // Returns the user type. | 95 // Returns the user type. |
| 96 virtual UserType GetType() const = 0; | 96 virtual UserType GetType() const = 0; |
| 97 | 97 |
| 98 // Allows managing child status of the user. Used for RegularUser. | 98 // Allows managing child status of the user. Used for RegularUser. |
| 99 virtual void SetIsChild(bool is_child); | 99 virtual void SetIsChild(bool is_child); |
| (...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 304 | 304 |
| 305 DISALLOW_COPY_AND_ASSIGN(User); | 305 DISALLOW_COPY_AND_ASSIGN(User); |
| 306 }; | 306 }; |
| 307 | 307 |
| 308 // List of known users. | 308 // List of known users. |
| 309 using UserList = std::vector<User*>; | 309 using UserList = std::vector<User*>; |
| 310 | 310 |
| 311 } // namespace user_manager | 311 } // namespace user_manager |
| 312 | 312 |
| 313 #endif // COMPONENTS_USER_MANAGER_USER_H_ | 313 #endif // COMPONENTS_USER_MANAGER_USER_H_ |
| OLD | NEW |