[email protected] | d66eac4 | 2014-07-14 23:48:30 | [diff] [blame] | 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 | ||||
3 | // found in the LICENSE file. | ||||
4 | |||||
5 | #ifndef COMPONENTS_USER_MANAGER_USER_INFO_IMPL_H_ | ||||
6 | #define COMPONENTS_USER_MANAGER_USER_INFO_IMPL_H_ | ||||
7 | |||||
8 | #include <string> | ||||
9 | |||||
avi | 5dd91f8 | 2015-12-25 22:30:46 | [diff] [blame] | 10 | #include "base/macros.h" |
[email protected] | d66eac4 | 2014-07-14 23:48:30 | [diff] [blame] | 11 | #include "base/strings/string16.h" |
Alexander Alekseev | 3f09a8f | 2018-05-03 02:52:10 | [diff] [blame] | 12 | #include "components/account_id/account_id.h" |
[email protected] | d66eac4 | 2014-07-14 23:48:30 | [diff] [blame] | 13 | #include "components/user_manager/user_info.h" |
14 | #include "components/user_manager/user_manager_export.h" | ||||
15 | #include "ui/gfx/image/image_skia.h" | ||||
16 | |||||
17 | namespace user_manager { | ||||
18 | |||||
19 | // Stub implementation of UserInfo interface. Used in tests. | ||||
20 | class USER_MANAGER_EXPORT UserInfoImpl : public UserInfo { | ||||
21 | public: | ||||
22 | UserInfoImpl(); | ||||
dcheng | 30a1b154 | 2014-10-29 21:27:50 | [diff] [blame] | 23 | ~UserInfoImpl() override; |
[email protected] | d66eac4 | 2014-07-14 23:48:30 | [diff] [blame] | 24 | |
25 | // UserInfo: | ||||
dcheng | 30a1b154 | 2014-10-29 21:27:50 | [diff] [blame] | 26 | base::string16 GetDisplayName() const override; |
27 | base::string16 GetGivenName() const override; | ||||
alemate | bc19dbb | 2016-11-01 19:49:07 | [diff] [blame] | 28 | std::string GetDisplayEmail() const override; |
hcarmona | b1723ed3 | 2015-11-18 21:52:58 | [diff] [blame] | 29 | const AccountId& GetAccountId() const override; |
dcheng | 30a1b154 | 2014-10-29 21:27:50 | [diff] [blame] | 30 | const gfx::ImageSkia& GetImage() const override; |
[email protected] | d66eac4 | 2014-07-14 23:48:30 | [diff] [blame] | 31 | |
32 | private: | ||||
hcarmona | b1723ed3 | 2015-11-18 21:52:58 | [diff] [blame] | 33 | const AccountId account_id_; |
[email protected] | d66eac4 | 2014-07-14 23:48:30 | [diff] [blame] | 34 | gfx::ImageSkia user_image_; |
35 | |||||
36 | DISALLOW_COPY_AND_ASSIGN(UserInfoImpl); | ||||
37 | }; | ||||
38 | |||||
39 | } // namespace user_manager | ||||
40 | |||||
41 | #endif // COMPONENTS_USER_MANAGER_USER_INFO_IMPL_H_ |