| 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_EXTENSIONS_EXTENSION_SYNC_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_SYNC_SERVICE_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_SYNC_SERVICE_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_SYNC_SERVICE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 // Notifies Sync (if needed) of a newly-installed extension or a change to | 55 // Notifies Sync (if needed) of a newly-installed extension or a change to |
| 56 // an existing extension. | 56 // an existing extension. |
| 57 virtual void SyncExtensionChangeIfNeeded( | 57 virtual void SyncExtensionChangeIfNeeded( |
| 58 const extensions::Extension& extension); | 58 const extensions::Extension& extension); |
| 59 | 59 |
| 60 // syncer::SyncableService implementation. | 60 // syncer::SyncableService implementation. |
| 61 virtual syncer::SyncMergeResult MergeDataAndStartSyncing( | 61 virtual syncer::SyncMergeResult MergeDataAndStartSyncing( |
| 62 syncer::ModelType type, | 62 syncer::ModelType type, |
| 63 const syncer::SyncDataList& initial_sync_data, | 63 const syncer::SyncDataList& initial_sync_data, |
| 64 scoped_ptr<syncer::SyncChangeProcessor> sync_processor, | 64 scoped_ptr<syncer::SyncChangeProcessor> sync_processor, |
| 65 scoped_ptr<syncer::SyncErrorFactory> sync_error_factory) OVERRIDE; | 65 scoped_ptr<syncer::SyncErrorFactory> sync_error_factory) override; |
| 66 virtual void StopSyncing(syncer::ModelType type) OVERRIDE; | 66 virtual void StopSyncing(syncer::ModelType type) override; |
| 67 virtual syncer::SyncDataList GetAllSyncData( | 67 virtual syncer::SyncDataList GetAllSyncData( |
| 68 syncer::ModelType type) const OVERRIDE; | 68 syncer::ModelType type) const override; |
| 69 virtual syncer::SyncError ProcessSyncChanges( | 69 virtual syncer::SyncError ProcessSyncChanges( |
| 70 const tracked_objects::Location& from_here, | 70 const tracked_objects::Location& from_here, |
| 71 const syncer::SyncChangeList& change_list) OVERRIDE; | 71 const syncer::SyncChangeList& change_list) override; |
| 72 | 72 |
| 73 // Gets the sync data for the given extension, assuming that the extension is | 73 // Gets the sync data for the given extension, assuming that the extension is |
| 74 // syncable. | 74 // syncable. |
| 75 extensions::ExtensionSyncData GetExtensionSyncData( | 75 extensions::ExtensionSyncData GetExtensionSyncData( |
| 76 const extensions::Extension& extension) const; | 76 const extensions::Extension& extension) const; |
| 77 | 77 |
| 78 // Gets the sync data for the given app, assuming that the app is | 78 // Gets the sync data for the given app, assuming that the app is |
| 79 // syncable. | 79 // syncable. |
| 80 extensions::AppSyncData GetAppSyncData( | 80 extensions::AppSyncData GetAppSyncData( |
| 81 const extensions::Extension& extension) const; | 81 const extensions::Extension& extension) const; |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 | 151 |
| 152 // Run()ning tells sync to try and start soon, because syncable changes | 152 // Run()ning tells sync to try and start soon, because syncable changes |
| 153 // have started happening. It will cause sync to call us back | 153 // have started happening. It will cause sync to call us back |
| 154 // asynchronously via MergeDataAndStartSyncing as soon as possible. | 154 // asynchronously via MergeDataAndStartSyncing as soon as possible. |
| 155 syncer::SyncableService::StartSyncFlare flare_; | 155 syncer::SyncableService::StartSyncFlare flare_; |
| 156 | 156 |
| 157 DISALLOW_COPY_AND_ASSIGN(ExtensionSyncService); | 157 DISALLOW_COPY_AND_ASSIGN(ExtensionSyncService); |
| 158 }; | 158 }; |
| 159 | 159 |
| 160 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SYNC_SERVICE_H_ | 160 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SYNC_SERVICE_H_ |
| OLD | NEW |