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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 // Returns the user type. | 78 // Returns the user type. |
79 virtual UserType GetType() const = 0; | 79 virtual UserType GetType() const = 0; |
80 | 80 |
81 // The email the user used to log in. | 81 // The email the user used to log in. |
82 const std::string& email() const { return email_; } | 82 const std::string& email() const { return email_; } |
83 | 83 |
84 // The displayed user name. | 84 // The displayed user name. |
85 base::string16 display_name() const { return display_name_; } | 85 base::string16 display_name() const { return display_name_; } |
86 | 86 |
87 // UserInfo | 87 // UserInfo |
88 virtual std::string GetEmail() const OVERRIDE; | 88 virtual std::string GetEmail() const override; |
89 virtual base::string16 GetDisplayName() const OVERRIDE; | 89 virtual base::string16 GetDisplayName() const override; |
90 virtual base::string16 GetGivenName() const OVERRIDE; | 90 virtual base::string16 GetGivenName() const override; |
91 virtual const gfx::ImageSkia& GetImage() const OVERRIDE; | 91 virtual const gfx::ImageSkia& GetImage() const override; |
92 virtual std::string GetUserID() const OVERRIDE; | 92 virtual std::string GetUserID() const override; |
93 | 93 |
94 // Is user supervised. | 94 // Is user supervised. |
95 virtual bool IsSupervised() const; | 95 virtual bool IsSupervised() const; |
96 virtual void SetIsSupervised(bool is_supervised); | 96 virtual void SetIsSupervised(bool is_supervised); |
97 | 97 |
98 // Returns the account name part of the email. Use the display form of the | 98 // Returns the account name part of the email. Use the display form of the |
99 // email if available and use_display_name == true. Otherwise use canonical. | 99 // email if available and use_display_name == true. Otherwise use canonical. |
100 std::string GetAccountName(bool use_display_email) const; | 100 std::string GetAccountName(bool use_display_email) const; |
101 | 101 |
102 // Whether the user has a default image. | 102 // Whether the user has a default image. |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 | 272 |
273 DISALLOW_COPY_AND_ASSIGN(User); | 273 DISALLOW_COPY_AND_ASSIGN(User); |
274 }; | 274 }; |
275 | 275 |
276 // List of known users. | 276 // List of known users. |
277 typedef std::vector<User*> UserList; | 277 typedef std::vector<User*> UserList; |
278 | 278 |
279 } // namespace user_manager | 279 } // namespace user_manager |
280 | 280 |
281 #endif // COMPONENTS_USER_MANAGER_USER_H_ | 281 #endif // COMPONENTS_USER_MANAGER_USER_H_ |
OLD | NEW |