| 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" |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 scoped_ptr<syncer::SyncErrorFactory> error_handler) OVERRIDE; | 93 scoped_ptr<syncer::SyncErrorFactory> error_handler) OVERRIDE; |
| 94 virtual void StopSyncing(syncer::ModelType type) OVERRIDE; | 94 virtual void StopSyncing(syncer::ModelType type) OVERRIDE; |
| 95 virtual syncer::SyncDataList GetAllSyncData( | 95 virtual syncer::SyncDataList GetAllSyncData( |
| 96 syncer::ModelType type) const OVERRIDE; | 96 syncer::ModelType type) const OVERRIDE; |
| 97 virtual syncer::SyncError ProcessSyncChanges( | 97 virtual syncer::SyncError ProcessSyncChanges( |
| 98 const tracked_objects::Location& from_here, | 98 const tracked_objects::Location& from_here, |
| 99 const syncer::SyncChangeList& change_list) OVERRIDE; | 99 const syncer::SyncChangeList& change_list) OVERRIDE; |
| 100 | 100 |
| 101 private: | 101 private: |
| 102 class ModelObserver; | 102 class ModelObserver; |
| 103 class PrefUpdater; |
| 103 typedef std::map<std::string, SyncItem*> SyncItemMap; | 104 typedef std::map<std::string, SyncItem*> SyncItemMap; |
| 104 | 105 |
| 105 // KeyedService | 106 // KeyedService |
| 106 virtual void Shutdown() OVERRIDE; | 107 virtual void Shutdown() OVERRIDE; |
| 107 | 108 |
| 108 // content::NotificationObserver | 109 // content::NotificationObserver |
| 109 virtual void Observe(int type, | 110 virtual void Observe(int type, |
| 110 const content::NotificationSource& source, | 111 const content::NotificationSource& source, |
| 111 const content::NotificationDetails& details) OVERRIDE; | 112 const content::NotificationDetails& details) OVERRIDE; |
| 112 | 113 |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 | 190 |
| 190 // Returns true if an extension matching |id| exists and was installed by | 191 // Returns true if an extension matching |id| exists and was installed by |
| 191 // an OEM (extension->was_installed_by_oem() is true). | 192 // an OEM (extension->was_installed_by_oem() is true). |
| 192 bool AppIsOem(const std::string& id); | 193 bool AppIsOem(const std::string& id); |
| 193 | 194 |
| 194 Profile* profile_; | 195 Profile* profile_; |
| 195 extensions::ExtensionSystem* extension_system_; | 196 extensions::ExtensionSystem* extension_system_; |
| 196 content::NotificationRegistrar registrar_; | 197 content::NotificationRegistrar registrar_; |
| 197 scoped_ptr<AppListModel> model_; | 198 scoped_ptr<AppListModel> model_; |
| 198 scoped_ptr<ModelObserver> model_observer_; | 199 scoped_ptr<ModelObserver> model_observer_; |
| 200 scoped_ptr<PrefUpdater> pref_updater_; |
| 199 scoped_ptr<ExtensionAppModelBuilder> apps_builder_; | 201 scoped_ptr<ExtensionAppModelBuilder> apps_builder_; |
| 200 scoped_ptr<syncer::SyncChangeProcessor> sync_processor_; | 202 scoped_ptr<syncer::SyncChangeProcessor> sync_processor_; |
| 201 scoped_ptr<syncer::SyncErrorFactory> sync_error_handler_; | 203 scoped_ptr<syncer::SyncErrorFactory> sync_error_handler_; |
| 202 SyncItemMap sync_items_; | 204 SyncItemMap sync_items_; |
| 203 syncer::SyncableService::StartSyncFlare flare_; | 205 syncer::SyncableService::StartSyncFlare flare_; |
| 204 bool initial_sync_data_processed_; | 206 bool initial_sync_data_processed_; |
| 205 bool first_app_list_sync_; | 207 bool first_app_list_sync_; |
| 206 std::string oem_folder_name_; | 208 std::string oem_folder_name_; |
| 207 | 209 |
| 208 // Provides integration with Drive apps. | 210 // Provides integration with Drive apps. |
| 209 scoped_ptr<DriveAppProvider> drive_app_provider_; | 211 scoped_ptr<DriveAppProvider> drive_app_provider_; |
| 210 | 212 |
| 211 DISALLOW_COPY_AND_ASSIGN(AppListSyncableService); | 213 DISALLOW_COPY_AND_ASSIGN(AppListSyncableService); |
| 212 }; | 214 }; |
| 213 | 215 |
| 214 } // namespace app_list | 216 } // namespace app_list |
| 215 | 217 |
| 216 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_SYNCABLE_SERVICE_H_ | 218 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_SYNCABLE_SERVICE_H_ |
| OLD | NEW |