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

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

Issue 2787693002: Remove more dead app list code. (Closed)
Patch Set: updated comment Created 3 years, 8 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>
11 #include <memory> 11 #include <memory>
12 12
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "base/memory/weak_ptr.h" 14 #include "base/memory/weak_ptr.h"
15 #include "base/observer_list.h" 15 #include "base/observer_list.h"
16 #include "build/build_config.h" 16 #include "build/build_config.h"
17 #include "chrome/browser/apps/drive/drive_app_uninstall_sync_service.h" 17 #include "chrome/browser/apps/drive/drive_app_uninstall_sync_service.h"
18 #include "chrome/browser/sync/glue/sync_start_util.h" 18 #include "chrome/browser/sync/glue/sync_start_util.h"
19 #include "components/keyed_service/core/keyed_service.h" 19 #include "components/keyed_service/core/keyed_service.h"
20 #include "components/sync/model/string_ordinal.h" 20 #include "components/sync/model/string_ordinal.h"
21 #include "components/sync/model/sync_change.h" 21 #include "components/sync/model/sync_change.h"
22 #include "components/sync/model/sync_change_processor.h" 22 #include "components/sync/model/sync_change_processor.h"
23 #include "components/sync/model/sync_error_factory.h" 23 #include "components/sync/model/sync_error_factory.h"
24 #include "components/sync/model/syncable_service.h" 24 #include "components/sync/model/syncable_service.h"
25 #include "components/sync/protocol/app_list_specifics.pb.h" 25 #include "components/sync/protocol/app_list_specifics.pb.h"
26 26
27 #if defined(OS_CHROMEOS)
28 class ArcAppModelBuilder; 27 class ArcAppModelBuilder;
29 #endif
30
31 class DriveAppProvider; 28 class DriveAppProvider;
32 class ExtensionAppModelBuilder; 29 class ExtensionAppModelBuilder;
33 class Profile; 30 class Profile;
34 31
35 namespace extensions { 32 namespace extensions {
36 class ExtensionSystem; 33 class ExtensionSystem;
37 } 34 }
38 35
39 namespace sync_pb { 36 namespace sync_pb {
40 class AppListSpecifics; 37 class AppListSpecifics;
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 void HandleUpdateFinished(); 250 void HandleUpdateFinished();
254 251
255 // Returns true if extension service is ready. 252 // Returns true if extension service is ready.
256 bool IsExtensionServiceReady() const; 253 bool IsExtensionServiceReady() const;
257 254
258 Profile* profile_; 255 Profile* profile_;
259 extensions::ExtensionSystem* extension_system_; 256 extensions::ExtensionSystem* extension_system_;
260 std::unique_ptr<AppListModel> model_; 257 std::unique_ptr<AppListModel> model_;
261 std::unique_ptr<ModelObserver> model_observer_; 258 std::unique_ptr<ModelObserver> model_observer_;
262 std::unique_ptr<ExtensionAppModelBuilder> apps_builder_; 259 std::unique_ptr<ExtensionAppModelBuilder> apps_builder_;
263 #if defined(OS_CHROMEOS)
264 std::unique_ptr<ArcAppModelBuilder> arc_apps_builder_; 260 std::unique_ptr<ArcAppModelBuilder> arc_apps_builder_;
265 #endif
266 std::unique_ptr<syncer::SyncChangeProcessor> sync_processor_; 261 std::unique_ptr<syncer::SyncChangeProcessor> sync_processor_;
267 std::unique_ptr<syncer::SyncErrorFactory> sync_error_handler_; 262 std::unique_ptr<syncer::SyncErrorFactory> sync_error_handler_;
268 SyncItemMap sync_items_; 263 SyncItemMap sync_items_;
269 syncer::SyncableService::StartSyncFlare flare_; 264 syncer::SyncableService::StartSyncFlare flare_;
270 bool initial_sync_data_processed_; 265 bool initial_sync_data_processed_;
271 bool first_app_list_sync_; 266 bool first_app_list_sync_;
272 std::string oem_folder_name_; 267 std::string oem_folder_name_;
273 268
274 // List of observers. 269 // List of observers.
275 base::ObserverList<Observer> observer_list_; 270 base::ObserverList<Observer> observer_list_;
276 271
277 // Provides integration with Drive apps. 272 // Provides integration with Drive apps.
278 std::unique_ptr<DriveAppProvider> drive_app_provider_; 273 std::unique_ptr<DriveAppProvider> drive_app_provider_;
279 274
280 base::WeakPtrFactory<AppListSyncableService> weak_ptr_factory_; 275 base::WeakPtrFactory<AppListSyncableService> weak_ptr_factory_;
281 276
282 DISALLOW_COPY_AND_ASSIGN(AppListSyncableService); 277 DISALLOW_COPY_AND_ASSIGN(AppListSyncableService);
283 }; 278 };
284 279
285 } // namespace app_list 280 } // namespace app_list
286 281
287 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_SYNCABLE_SERVICE_H_ 282 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_SYNCABLE_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698