OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 CHROME_BROWSER_PROFILES_PROFILE_ATTRIBUTES_ENTRY_H_ | 5 #ifndef CHROME_BROWSER_PROFILES_PROFILE_ATTRIBUTES_ENTRY_H_ |
6 #define CHROME_BROWSER_PROFILES_PROFILE_ATTRIBUTES_ENTRY_H_ | 6 #define CHROME_BROWSER_PROFILES_PROFILE_ATTRIBUTES_ENTRY_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 21 matching lines...) Expand all Loading... |
32 // Gets the path to the profile. Should correspond to the path passed to | 32 // Gets the path to the profile. Should correspond to the path passed to |
33 // ProfileAttributesStorage::GetProfileAttributesWithPath to get this entry. | 33 // ProfileAttributesStorage::GetProfileAttributesWithPath to get this entry. |
34 base::FilePath GetPath() const; | 34 base::FilePath GetPath() const; |
35 base::Time GetActiveTime() const; | 35 base::Time GetActiveTime() const; |
36 // Gets the user name of the signed in profile. This is typically the email | 36 // Gets the user name of the signed in profile. This is typically the email |
37 // address used to sign in and the empty string for profiles that aren't | 37 // address used to sign in and the empty string for profiles that aren't |
38 // signed in to chrome. | 38 // signed in to chrome. |
39 base::string16 GetUserName() const; | 39 base::string16 GetUserName() const; |
40 // Gets the icon used as this profile's avatar. This might not be the icon | 40 // Gets the icon used as this profile's avatar. This might not be the icon |
41 // displayed in the UI if IsUsingGAIAPicture() is true. | 41 // displayed in the UI if IsUsingGAIAPicture() is true. |
42 const gfx::Image& GetAvatarIcon(); | 42 const gfx::Image& GetAvatarIcon() const; |
43 std::string GetLocalAuthCredentials() const; | 43 std::string GetLocalAuthCredentials() const; |
44 std::string GetPasswordChangeDetectionToken() const; | 44 std::string GetPasswordChangeDetectionToken() const; |
45 // Note that a return value of false could mean an error in collection or | 45 // Note that a return value of false could mean an error in collection or |
46 // that there are currently no background apps running. However, the action | 46 // that there are currently no background apps running. However, the action |
47 // which results is the same in both cases (thus far). | 47 // which results is the same in both cases (thus far). |
48 bool GetBackgroundStatus() const; | 48 bool GetBackgroundStatus() const; |
49 // Gets the GAIA full name associated with this profile if it's signed in. | 49 // Gets the GAIA full name associated with this profile if it's signed in. |
50 base::string16 GetGAIAName() const; | 50 base::string16 GetGAIAName() const; |
51 // Gets the GAIA given name associated with this profile if it's signed in. | 51 // Gets the GAIA given name associated with this profile if it's signed in. |
52 base::string16 GetGAIAGivenName() const; | 52 base::string16 GetGAIAGivenName() const; |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 friend class ProfileInfoCache; | 134 friend class ProfileInfoCache; |
135 void Initialize(ProfileInfoCache* cache, const base::FilePath& path); | 135 void Initialize(ProfileInfoCache* cache, const base::FilePath& path); |
136 size_t profile_index() const; | 136 size_t profile_index() const; |
137 ProfileInfoCache* profile_info_cache_; | 137 ProfileInfoCache* profile_info_cache_; |
138 base::FilePath profile_path_; | 138 base::FilePath profile_path_; |
139 | 139 |
140 DISALLOW_COPY_AND_ASSIGN(ProfileAttributesEntry); | 140 DISALLOW_COPY_AND_ASSIGN(ProfileAttributesEntry); |
141 }; | 141 }; |
142 | 142 |
143 #endif // CHROME_BROWSER_PROFILES_PROFILE_ATTRIBUTES_ENTRY_H_ | 143 #endif // CHROME_BROWSER_PROFILES_PROFILE_ATTRIBUTES_ENTRY_H_ |
OLD | NEW |