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_INFO_H_ | 5 #ifndef COMPONENTS_USER_MANAGER_USER_INFO_H_ |
6 #define COMPONENTS_USER_MANAGER_USER_INFO_H_ | 6 #define COMPONENTS_USER_MANAGER_USER_INFO_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
(...skipping 18 matching lines...) Expand all Loading... |
29 | 29 |
30 // Gets the given name of the user. | 30 // Gets the given name of the user. |
31 virtual base::string16 GetGivenName() const = 0; | 31 virtual base::string16 GetGivenName() const = 0; |
32 | 32 |
33 // Gets the display email address for the user. | 33 // Gets the display email address for the user. |
34 // The display email address might contains some periods in the email name | 34 // The display email address might contains some periods in the email name |
35 // as well as capitalized letters. For example: "Foo.Bar@mock.com". | 35 // as well as capitalized letters. For example: "Foo.Bar@mock.com". |
36 virtual std::string GetEmail() const = 0; | 36 virtual std::string GetEmail() const = 0; |
37 | 37 |
38 // Returns AccountId for the user. | 38 // Returns AccountId for the user. |
39 virtual const AccountId& GetAccountId() const = 0; | 39 virtual AccountId GetAccountId() const = 0; |
40 | 40 |
41 // Gets the avatar image for the user. | 41 // Gets the avatar image for the user. |
42 virtual const gfx::ImageSkia& GetImage() const = 0; | 42 virtual const gfx::ImageSkia& GetImage() const = 0; |
43 }; | 43 }; |
44 | 44 |
45 } // namespace user_manager | 45 } // namespace user_manager |
46 | 46 |
47 #endif // COMPONENTS_USER_MANAGER_USER_INFO_H_ | 47 #endif // COMPONENTS_USER_MANAGER_USER_INFO_H_ |
OLD | NEW |