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

Unified Diff: chrome/browser/profiles/profile_attributes_storage.h

Issue 1631373003: Refactor ProfileInfoCache in c/b/ui/app_list (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Respond to comments, add sorting of ProfileAttributesEntry Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
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..be37714d5d67b632f9eec90c5e5bc11a625f3f52 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() {}
@@ -46,6 +56,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);
};

Powered by Google App Engine
This is Rietveld 408576698