| Index: chrome/browser/profiles/profile_attributes_storage.h
|
| diff --git a/chrome/browser/profiles/profile_attributes_storage.h b/chrome/browser/profiles/profile_attributes_storage.h
|
| index 67b82af81206123e63f94c888998bef6eba9645c..00368136251594bdc682a1ccfc3505e4ece24761 100644
|
| --- a/chrome/browser/profiles/profile_attributes_storage.h
|
| +++ b/chrome/browser/profiles/profile_attributes_storage.h
|
| @@ -7,12 +7,22 @@
|
|
|
| #include <stddef.h>
|
|
|
| +#include <string>
|
| +#include <vector>
|
| +
|
| #include "base/macros.h"
|
| +#include "base/strings/string16.h"
|
| +#include "chrome/browser/profiles/profile_info_cache_observer.h"
|
|
|
| +namespace base {
|
| +class FilePath;
|
| +} // namespace base
|
| class ProfileAttributesEntry;
|
|
|
| class ProfileAttributesStorage {
|
| public:
|
| + using Observer = ProfileInfoCacheObserver;
|
| +
|
| ProfileAttributesStorage() {}
|
| ~ProfileAttributesStorage() {}
|
|
|
| @@ -34,6 +44,8 @@ class ProfileAttributesStorage {
|
| // Returns a vector containing one attributes entry per known profile. They
|
| // are not sorted in any particular order.
|
| virtual std::vector<ProfileAttributesEntry*> GetAllProfilesAttributes() = 0;
|
| + virtual std::vector<ProfileAttributesEntry*>
|
| + GetAllProfilesAttributesSortedByName() = 0;
|
|
|
| // Populates |entry| with the data for the profile at |path| and returns true
|
| // if the operation is successful and |entry| can be used. Returns false
|
| @@ -46,6 +58,10 @@ class ProfileAttributesStorage {
|
| // Returns the count of known profiles.
|
| virtual size_t GetNumberOfProfiles() const = 0;
|
|
|
| + virtual void AddObserver(ProfileAttributesStorage::Observer* observer) = 0;
|
| + virtual void RemoveObserver(ProfileAttributesStorage::Observer* observer) = 0;
|
| +
|
| + private:
|
| DISALLOW_COPY_AND_ASSIGN(ProfileAttributesStorage);
|
| };
|
|
|
|
|