| 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_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 Loading... |
| 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_ |
| OLD | NEW |