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

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

Issue 1794353003: Refactor ProfileInfoCache in c/b/profiles (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix a bug that causes unit tests without debug code to fail. Created 4 years, 8 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_STORAGE_H_ 5 #ifndef CHROME_BROWSER_PROFILES_PROFILE_ATTRIBUTES_STORAGE_H_
6 #define CHROME_BROWSER_PROFILES_PROFILE_ATTRIBUTES_STORAGE_H_ 6 #define CHROME_BROWSER_PROFILES_PROFILE_ATTRIBUTES_STORAGE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 // the profile's metadata. 54 // the profile's metadata.
55 virtual bool GetProfileAttributesWithPath( 55 virtual bool GetProfileAttributesWithPath(
56 const base::FilePath& path, ProfileAttributesEntry** entry) = 0; 56 const base::FilePath& path, ProfileAttributesEntry** entry) = 0;
57 57
58 // Returns the count of known profiles. 58 // Returns the count of known profiles.
59 virtual size_t GetNumberOfProfiles() const = 0; 59 virtual size_t GetNumberOfProfiles() const = 0;
60 60
61 // Returns a unique name that can be assigned to a newly created profile. 61 // Returns a unique name that can be assigned to a newly created profile.
62 virtual base::string16 ChooseNameForNewProfile(size_t icon_index) const = 0; 62 virtual base::string16 ChooseNameForNewProfile(size_t icon_index) const = 0;
63 63
64 // Determines whether |name| is one of the default assigned names.
65 virtual bool IsDefaultProfileName(const base::string16& name) const = 0;
66
64 // Returns an avatar icon index that can be assigned to a newly created 67 // Returns an avatar icon index that can be assigned to a newly created
65 // profile. Note that the icon may not be unique since there are a limited 68 // profile. Note that the icon may not be unique since there are a limited
66 // set of default icons. 69 // set of default icons.
67 virtual size_t ChooseAvatarIconIndexForNewProfile() const = 0; 70 virtual size_t ChooseAvatarIconIndexForNewProfile() const = 0;
68 71
69 virtual void AddObserver(ProfileAttributesStorage::Observer* observer) = 0; 72 virtual void AddObserver(ProfileAttributesStorage::Observer* observer) = 0;
70 virtual void RemoveObserver(ProfileAttributesStorage::Observer* observer) = 0; 73 virtual void RemoveObserver(ProfileAttributesStorage::Observer* observer) = 0;
71 74
72 private: 75 private:
73 DISALLOW_COPY_AND_ASSIGN(ProfileAttributesStorage); 76 DISALLOW_COPY_AND_ASSIGN(ProfileAttributesStorage);
74 }; 77 };
75 78
76 #endif // CHROME_BROWSER_PROFILES_PROFILE_ATTRIBUTES_STORAGE_H_ 79 #endif // CHROME_BROWSER_PROFILES_PROFILE_ATTRIBUTES_STORAGE_H_
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_attributes_entry.cc ('k') | chrome/browser/profiles/profile_avatar_icon_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698