OLD | NEW |
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 <map> | 8 #include <map> |
9 | 9 |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "chrome/browser/apps/drive/drive_app_uninstall_sync_service.h" | 11 #include "chrome/browser/apps/drive/drive_app_uninstall_sync_service.h" |
12 #include "chrome/browser/sync/glue/sync_start_util.h" | 12 #include "chrome/browser/sync/glue/sync_start_util.h" |
13 #include "components/keyed_service/core/keyed_service.h" | 13 #include "components/keyed_service/core/keyed_service.h" |
14 #include "sync/api/string_ordinal.h" | 14 #include "sync/api/string_ordinal.h" |
15 #include "sync/api/sync_change.h" | 15 #include "sync/api/sync_change.h" |
16 #include "sync/api/sync_change_processor.h" | 16 #include "sync/api/sync_change_processor.h" |
17 #include "sync/api/sync_error_factory.h" | 17 #include "sync/api/sync_error_factory.h" |
18 #include "sync/api/syncable_service.h" | 18 #include "sync/api/syncable_service.h" |
19 #include "sync/protocol/app_list_specifics.pb.h" | 19 #include "sync/protocol/app_list_specifics.pb.h" |
20 | 20 |
| 21 class ArcAppModelBuilder; |
21 class DriveAppProvider; | 22 class DriveAppProvider; |
22 class ExtensionAppModelBuilder; | 23 class ExtensionAppModelBuilder; |
23 class Profile; | 24 class Profile; |
24 | 25 |
25 namespace extensions { | 26 namespace extensions { |
26 class ExtensionSystem; | 27 class ExtensionSystem; |
27 } | 28 } |
28 | 29 |
29 namespace sync_pb { | 30 namespace sync_pb { |
30 class AppListSpecifics; | 31 class AppListSpecifics; |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 // Returns true if an extension matching |id| exists and was installed by | 194 // Returns true if an extension matching |id| exists and was installed by |
194 // an OEM (extension->was_installed_by_oem() is true). | 195 // an OEM (extension->was_installed_by_oem() is true). |
195 bool AppIsOem(const std::string& id); | 196 bool AppIsOem(const std::string& id); |
196 | 197 |
197 Profile* profile_; | 198 Profile* profile_; |
198 extensions::ExtensionSystem* extension_system_; | 199 extensions::ExtensionSystem* extension_system_; |
199 scoped_ptr<AppListModel> model_; | 200 scoped_ptr<AppListModel> model_; |
200 scoped_ptr<ModelObserver> model_observer_; | 201 scoped_ptr<ModelObserver> model_observer_; |
201 scoped_ptr<ModelPrefUpdater> model_pref_updater_; | 202 scoped_ptr<ModelPrefUpdater> model_pref_updater_; |
202 scoped_ptr<ExtensionAppModelBuilder> apps_builder_; | 203 scoped_ptr<ExtensionAppModelBuilder> apps_builder_; |
| 204 scoped_ptr<ArcAppModelBuilder> arc_apps_builder_; |
203 scoped_ptr<syncer::SyncChangeProcessor> sync_processor_; | 205 scoped_ptr<syncer::SyncChangeProcessor> sync_processor_; |
204 scoped_ptr<syncer::SyncErrorFactory> sync_error_handler_; | 206 scoped_ptr<syncer::SyncErrorFactory> sync_error_handler_; |
205 SyncItemMap sync_items_; | 207 SyncItemMap sync_items_; |
206 syncer::SyncableService::StartSyncFlare flare_; | 208 syncer::SyncableService::StartSyncFlare flare_; |
207 bool initial_sync_data_processed_; | 209 bool initial_sync_data_processed_; |
208 bool first_app_list_sync_; | 210 bool first_app_list_sync_; |
209 std::string oem_folder_name_; | 211 std::string oem_folder_name_; |
210 | 212 |
211 // Provides integration with Drive apps. | 213 // Provides integration with Drive apps. |
212 scoped_ptr<DriveAppProvider> drive_app_provider_; | 214 scoped_ptr<DriveAppProvider> drive_app_provider_; |
213 | 215 |
214 DISALLOW_COPY_AND_ASSIGN(AppListSyncableService); | 216 DISALLOW_COPY_AND_ASSIGN(AppListSyncableService); |
215 }; | 217 }; |
216 | 218 |
217 } // namespace app_list | 219 } // namespace app_list |
218 | 220 |
219 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_SYNCABLE_SERVICE_H_ | 221 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_SYNCABLE_SERVICE_H_ |
OLD | NEW |