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

Side by Side Diff: chrome/browser/profiles/profile_attributes_entry.h

Issue 1631373003: Refactor ProfileInfoCache in c/b/ui/app_list (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased, moved sorting code to GetAllProfilesAttributesSortedByName Created 4 years, 10 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
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/profiles/profile_attributes_entry.cc » ('j') | chrome/browser/profiles/profile_info_cache.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698