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

Side by Side Diff: chrome/browser/ui/app_list/app_list_syncable_service.h

Issue 2430753002: Discard unused AppListPrefs code. (Closed)
Patch Set: update Created 4 years, 2 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_UI_APP_LIST_APP_LIST_SYNCABLE_SERVICE_H_ 5 #ifndef CHROME_BROWSER_UI_APP_LIST_APP_LIST_SYNCABLE_SERVICE_H_
6 #define CHROME_BROWSER_UI_APP_LIST_APP_LIST_SYNCABLE_SERVICE_H_ 6 #define CHROME_BROWSER_UI_APP_LIST_APP_LIST_SYNCABLE_SERVICE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 26 matching lines...) Expand all
37 37
38 namespace sync_pb { 38 namespace sync_pb {
39 class AppListSpecifics; 39 class AppListSpecifics;
40 } 40 }
41 41
42 namespace app_list { 42 namespace app_list {
43 43
44 class AppListFolderItem; 44 class AppListFolderItem;
45 class AppListItem; 45 class AppListItem;
46 class AppListModel; 46 class AppListModel;
47 class ModelPrefUpdater;
48 47
49 // Keyed Service that owns, stores, and syncs an AppListModel for a profile. 48 // Keyed Service that owns, stores, and syncs an AppListModel for a profile.
50 class AppListSyncableService : public syncer::SyncableService, 49 class AppListSyncableService : public syncer::SyncableService,
51 public KeyedService, 50 public KeyedService,
52 public DriveAppUninstallSyncService { 51 public DriveAppUninstallSyncService {
53 public: 52 public:
54 struct SyncItem { 53 struct SyncItem {
55 SyncItem(const std::string& id, 54 SyncItem(const std::string& id,
56 sync_pb::AppListSpecifics::AppListItemType type); 55 sync_pb::AppListSpecifics::AppListItemType type);
57 ~SyncItem(); 56 ~SyncItem();
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 // an OEM (extension->was_installed_by_oem() is true). 229 // an OEM (extension->was_installed_by_oem() is true).
231 bool AppIsOem(const std::string& id); 230 bool AppIsOem(const std::string& id);
232 231
233 // Helper that notifies observers that sync model has been updated. 232 // Helper that notifies observers that sync model has been updated.
234 void NotifyObserversSyncUpdated(); 233 void NotifyObserversSyncUpdated();
235 234
236 Profile* profile_; 235 Profile* profile_;
237 extensions::ExtensionSystem* extension_system_; 236 extensions::ExtensionSystem* extension_system_;
238 std::unique_ptr<AppListModel> model_; 237 std::unique_ptr<AppListModel> model_;
239 std::unique_ptr<ModelObserver> model_observer_; 238 std::unique_ptr<ModelObserver> model_observer_;
240 std::unique_ptr<ModelPrefUpdater> model_pref_updater_;
241 std::unique_ptr<ExtensionAppModelBuilder> apps_builder_; 239 std::unique_ptr<ExtensionAppModelBuilder> apps_builder_;
242 #if defined(OS_CHROMEOS) 240 #if defined(OS_CHROMEOS)
243 std::unique_ptr<ArcAppModelBuilder> arc_apps_builder_; 241 std::unique_ptr<ArcAppModelBuilder> arc_apps_builder_;
244 #endif 242 #endif
245 std::unique_ptr<syncer::SyncChangeProcessor> sync_processor_; 243 std::unique_ptr<syncer::SyncChangeProcessor> sync_processor_;
246 std::unique_ptr<syncer::SyncErrorFactory> sync_error_handler_; 244 std::unique_ptr<syncer::SyncErrorFactory> sync_error_handler_;
247 SyncItemMap sync_items_; 245 SyncItemMap sync_items_;
248 syncer::SyncableService::StartSyncFlare flare_; 246 syncer::SyncableService::StartSyncFlare flare_;
249 bool initial_sync_data_processed_; 247 bool initial_sync_data_processed_;
250 bool first_app_list_sync_; 248 bool first_app_list_sync_;
251 std::string oem_folder_name_; 249 std::string oem_folder_name_;
252 250
253 // List of observers. 251 // List of observers.
254 base::ObserverList<Observer> observer_list_; 252 base::ObserverList<Observer> observer_list_;
255 253
256 // Provides integration with Drive apps. 254 // Provides integration with Drive apps.
257 std::unique_ptr<DriveAppProvider> drive_app_provider_; 255 std::unique_ptr<DriveAppProvider> drive_app_provider_;
258 256
259 DISALLOW_COPY_AND_ASSIGN(AppListSyncableService); 257 DISALLOW_COPY_AND_ASSIGN(AppListSyncableService);
260 }; 258 };
261 259
262 } // namespace app_list 260 } // namespace app_list
263 261
264 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_SYNCABLE_SERVICE_H_ 262 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_SYNCABLE_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/app_list/app_list_prefs_factory.cc ('k') | chrome/browser/ui/app_list/app_list_syncable_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698