Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(172)

Side by Side Diff: components/user_manager/user_info.h

Issue 379803004: Move UserInfo to user_manager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « components/user_manager/empty_user_info.cc ('k') | components/user_manager/user_info.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 ASH_SESSION_USER_INFO_H_ 5 #ifndef COMPONENTS_USER_MANAGER_USER_INFO_H_
6 #define ASH_SESSION_USER_INFO_H_ 6 #define COMPONENTS_USER_MANAGER_USER_INFO_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "ash/ash_export.h"
11 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
11 #include "components/user_manager/user_manager_export.h"
12 12
13 namespace gfx { 13 namespace gfx {
14 class ImageSkia; 14 class ImageSkia;
15 } 15 }
16 16
17 namespace ash { 17 namespace user_manager {
18 18
19 // A class that represents user related info. 19 // A class that represents user related info.
20 class ASH_EXPORT UserInfo { 20 class USER_MANAGER_EXPORT UserInfo {
21 public: 21 public:
22 virtual ~UserInfo() {} 22 UserInfo();
23 virtual ~UserInfo();
23 24
24 // Gets the display name for the user. 25 // Gets the display name for the user.
25 virtual base::string16 GetDisplayName() const = 0; 26 virtual base::string16 GetDisplayName() const = 0;
26 27
27 // Gets the given name of the user. 28 // Gets the given name of the user.
28 virtual base::string16 GetGivenName() const = 0; 29 virtual base::string16 GetGivenName() const = 0;
29 30
30 // Gets the display email address for the user. 31 // Gets the display email address for the user.
31 // The display email address might contains some periods in the email name 32 // The display email address might contains some periods in the email name
32 // as well as capitalized letters. For example: "Foo.Bar@mock.com". 33 // as well as capitalized letters. For example: "Foo.Bar@mock.com".
33 virtual std::string GetEmail() const = 0; 34 virtual std::string GetEmail() const = 0;
34 35
35 // Gets the user id (sanitized email address) for the user. 36 // Gets the user id (sanitized email address) for the user.
36 // The function would return something like "foobar@mock.com". 37 // The function would return something like "foobar@mock.com".
37 virtual std::string GetUserID() const = 0; 38 virtual std::string GetUserID() const = 0;
38 39
39 // Gets the avatar image for the user. 40 // Gets the avatar image for the user.
40 virtual const gfx::ImageSkia& GetImage() const = 0; 41 virtual const gfx::ImageSkia& GetImage() const = 0;
41 }; 42 };
42 43
43 } // namespace ash 44 } // namespace user_manager
44 45
45 #endif // ASH_SESSION_USER_INFO_H_ 46 #endif // COMPONENTS_USER_MANAGER_USER_INFO_H_
OLDNEW
« no previous file with comments | « components/user_manager/empty_user_info.cc ('k') | components/user_manager/user_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698