Revert of [Webapp Refactor] Remove remoting.SessionConnector. (patchset #3 id:60001...
[chromium-blink-merge.git] / components / user_manager / empty_user_info.h
blob52d677c3e2fd0ba65dc2b64aad667696a804b847
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_EMPTY_USER_INFO_H_
6 #define COMPONENTS_USER_MANAGER_EMPTY_USER_INFO_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 // Trivial implementation of UserInfo interface which triggers
18 // NOTIMPLEMENTED() for each method.
19 class USER_MANAGER_EXPORT EmptyUserInfo : public UserInfo {
20 public:
21 EmptyUserInfo();
22 ~EmptyUserInfo() override;
24 // UserInfo:
25 base::string16 GetDisplayName() const override;
26 base::string16 GetGivenName() const override;
27 std::string GetEmail() const override;
28 std::string GetUserID() const override;
29 const gfx::ImageSkia& GetImage() const override;
31 private:
32 const gfx::ImageSkia null_image_;
34 DISALLOW_COPY_AND_ASSIGN(EmptyUserInfo);
37 } // namespace user_manager
39 #endif // COMPONENTS_USER_MANAGER_EMPTY_USER_INFO_H_