QUIC - cleanup changes to sync chromium tree with internal source.
[chromium-blink-merge.git] / components / user_manager / user_info_impl.h
blobd23ca0c34439c17e38d9936e6444dcbd1e19ad33
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.
5 #ifndef COMPONENTS_USER_MANAGER_USER_INFO_IMPL_H_
6 #define COMPONENTS_USER_MANAGER_USER_INFO_IMPL_H_
8 #include <string>
10 #include "base/strings/string16.h"
11 #include "components/user_manager/user_info.h"
12 #include "components/user_manager/user_manager_export.h"
13 #include "ui/gfx/image/image_skia.h"
15 namespace user_manager {
17 // Stub implementation of UserInfo interface. Used in tests.
18 class USER_MANAGER_EXPORT UserInfoImpl : public UserInfo {
19 public:
20 UserInfoImpl();
21 ~UserInfoImpl() override;
23 // UserInfo:
24 base::string16 GetDisplayName() const override;
25 base::string16 GetGivenName() const override;
26 std::string GetEmail() const override;
27 std::string GetUserID() const override;
28 const gfx::ImageSkia& GetImage() const override;
30 private:
31 gfx::ImageSkia user_image_;
33 DISALLOW_COPY_AND_ASSIGN(UserInfoImpl);
36 } // namespace user_manager
38 #endif // COMPONENTS_USER_MANAGER_USER_INFO_IMPL_H_