Index: chrome/browser/ui/app_list/app_list_syncable_service.h |
diff --git a/chrome/browser/ui/app_list/app_list_syncable_service.h b/chrome/browser/ui/app_list/app_list_syncable_service.h |
index 0bd7e266ec59dd0cb88ee335d6f0635cc434da38..009d8d20ef44baf075035aabc893ba584d23b3d0 100644 |
--- a/chrome/browser/ui/app_list/app_list_syncable_service.h |
+++ b/chrome/browser/ui/app_list/app_list_syncable_service.h |
@@ -7,25 +7,43 @@ |
#include "base/memory/scoped_ptr.h" |
#include "components/browser_context_keyed_service/browser_context_keyed_service.h" |
+#include "content/public/browser/notification_observer.h" |
+#include "content/public/browser/notification_registrar.h" |
class ExtensionAppModelBuilder; |
class Profile; |
+namespace extensions { |
+class ExtensionSystem; |
+} |
+ |
namespace app_list { |
class AppListModel; |
-// Keyed Service that owns, stores, and syncs an AppListModel for a profile. |
+// Keyed Service that owns, stores, and syncs an AppListModel for an |
+// ExtensionSystem and corresponding profile. |
// TODO(stevenjb): Integrate with Sync. crbug.com/305024. |
-class AppListSyncableService : public BrowserContextKeyedService { |
+class AppListSyncableService : public BrowserContextKeyedService, |
+ public content::NotificationObserver { |
public: |
- explicit AppListSyncableService(Profile* profile); |
+ AppListSyncableService(Profile* profile, |
+ extensions::ExtensionSystem* extension_system); |
+ |
virtual ~AppListSyncableService(); |
AppListModel* model() { return model_.get(); } |
private: |
+ void BuildModel(); |
+ |
+ // content::NotificationObserver: |
+ virtual void Observe(int type, |
+ const content::NotificationSource& source, |
+ const content::NotificationDetails& details) OVERRIDE; |
+ |
Profile* profile_; |
+ content::NotificationRegistrar registrar_; |
scoped_ptr<AppListModel> model_; |
scoped_ptr<ExtensionAppModelBuilder> apps_builder_; |