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_EMPTY_USER_INFO_H_ | 5 #ifndef COMPONENTS_USER_MANAGER_EMPTY_USER_INFO_H_ |
6 #define COMPONENTS_USER_MANAGER_EMPTY_USER_INFO_H_ | 6 #define COMPONENTS_USER_MANAGER_EMPTY_USER_INFO_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "base/strings/string16.h" | 11 #include "base/strings/string16.h" |
12 #include "components/user_manager/user_info.h" | 12 #include "components/user_manager/user_info.h" |
13 #include "components/user_manager/user_manager_export.h" | 13 #include "components/user_manager/user_manager_export.h" |
14 #include "ui/gfx/image/image_skia.h" | 14 #include "ui/gfx/image/image_skia.h" |
15 | 15 |
16 namespace user_manager { | 16 namespace user_manager { |
17 | 17 |
18 // Trivial implementation of UserInfo interface which triggers | 18 // Trivial implementation of UserInfo interface which triggers |
19 // NOTIMPLEMENTED() for each method. | 19 // NOTIMPLEMENTED() for each method. |
20 class USER_MANAGER_EXPORT EmptyUserInfo : public UserInfo { | 20 class USER_MANAGER_EXPORT EmptyUserInfo : public UserInfo { |
xiyuan
2016/10/26 17:26:17
While looking at the user_manager code, I found no
Alexander Alekseev
2016/10/27 18:11:37
Done.
| |
21 public: | 21 public: |
22 EmptyUserInfo(); | 22 EmptyUserInfo(); |
23 ~EmptyUserInfo() override; | 23 ~EmptyUserInfo() override; |
24 | 24 |
25 // UserInfo: | 25 // UserInfo: |
26 base::string16 GetDisplayName() const override; | 26 base::string16 GetDisplayName() const override; |
27 base::string16 GetGivenName() const override; | 27 base::string16 GetGivenName() const override; |
28 std::string GetEmail() const override; | 28 std::string GetDisplayEmail() const override; |
29 const AccountId& GetAccountId() const override; | 29 const AccountId& GetAccountId() const override; |
30 const gfx::ImageSkia& GetImage() const override; | 30 const gfx::ImageSkia& GetImage() const override; |
31 | 31 |
32 private: | 32 private: |
33 const gfx::ImageSkia null_image_; | 33 const gfx::ImageSkia null_image_; |
34 | 34 |
35 DISALLOW_COPY_AND_ASSIGN(EmptyUserInfo); | 35 DISALLOW_COPY_AND_ASSIGN(EmptyUserInfo); |
36 }; | 36 }; |
37 | 37 |
38 } // namespace user_manager | 38 } // namespace user_manager |
39 | 39 |
40 #endif // COMPONENTS_USER_MANAGER_EMPTY_USER_INFO_H_ | 40 #endif // COMPONENTS_USER_MANAGER_EMPTY_USER_INFO_H_ |
OLD | NEW |