blob: 5f73252fc8eeb66b280aa48b5415d08ae1a3e058 [file] [log] [blame]
[email protected]fdf74bf2014-04-30 21:24:021// Copyright 2014 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
[email protected]d66eac42014-07-14 23:48:305#ifndef COMPONENTS_USER_MANAGER_USER_INFO_H_
6#define COMPONENTS_USER_MANAGER_USER_INFO_H_
[email protected]fdf74bf2014-04-30 21:24:027
8#include <string>
9
[email protected]fdf74bf2014-04-30 21:24:0210#include "base/strings/string16.h"
[email protected]d66eac42014-07-14 23:48:3011#include "components/user_manager/user_manager_export.h"
[email protected]fdf74bf2014-04-30 21:24:0212
alemate3ffbde6f2015-11-03 02:02:5513class AccountId;
14
[email protected]fdf74bf2014-04-30 21:24:0215namespace gfx {
16class ImageSkia;
17}
18
[email protected]d66eac42014-07-14 23:48:3019namespace user_manager {
[email protected]fdf74bf2014-04-30 21:24:0220
21// A class that represents user related info.
[email protected]d66eac42014-07-14 23:48:3022class USER_MANAGER_EXPORT UserInfo {
[email protected]fdf74bf2014-04-30 21:24:0223 public:
[email protected]d66eac42014-07-14 23:48:3024 UserInfo();
25 virtual ~UserInfo();
[email protected]fdf74bf2014-04-30 21:24:0226
27 // Gets the display name for the user.
28 virtual base::string16 GetDisplayName() const = 0;
29
30 // Gets the given name of the user.
31 virtual base::string16 GetGivenName() const = 0;
32
33 // Gets the display email address for the user.
34 // The display email address might contains some periods in the email name
35 // as well as capitalized letters. For example: "[email protected]".
alematebc19dbb2016-11-01 19:49:0736 virtual std::string GetDisplayEmail() const = 0;
[email protected]fdf74bf2014-04-30 21:24:0237
alemate3ffbde6f2015-11-03 02:02:5538 // Returns AccountId for the user.
hcarmonab1723ed32015-11-18 21:52:5839 virtual const AccountId& GetAccountId() const = 0;
[email protected]fdf74bf2014-04-30 21:24:0240
41 // Gets the avatar image for the user.
42 virtual const gfx::ImageSkia& GetImage() const = 0;
43};
44
[email protected]d66eac42014-07-14 23:48:3045} // namespace user_manager
[email protected]fdf74bf2014-04-30 21:24:0246
[email protected]d66eac42014-07-14 23:48:3047#endif // COMPONENTS_USER_MANAGER_USER_INFO_H_