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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 std::vector<extensions::AppSyncData> GetAppSyncDataList() const; | 88 std::vector<extensions::AppSyncData> GetAppSyncDataList() const; |
89 | 89 |
90 // Applies the change specified passed in by either ExtensionSyncData or | 90 // Applies the change specified passed in by either ExtensionSyncData or |
91 // AppSyncData to the current system. | 91 // AppSyncData to the current system. |
92 // Returns false if the changes were not completely applied and were added | 92 // Returns false if the changes were not completely applied and were added |
93 // to the pending list to be tried again. | 93 // to the pending list to be tried again. |
94 bool ProcessExtensionSyncData( | 94 bool ProcessExtensionSyncData( |
95 const extensions::ExtensionSyncData& extension_sync_data); | 95 const extensions::ExtensionSyncData& extension_sync_data); |
96 bool ProcessAppSyncData(const extensions::AppSyncData& app_sync_data); | 96 bool ProcessAppSyncData(const extensions::AppSyncData& app_sync_data); |
97 | 97 |
| 98 // Processes the bookmark app specific parts of an AppSyncData. |
| 99 void ProcessBookmarkAppSyncData(const extensions::AppSyncData& app_sync_data); |
| 100 |
98 syncer::SyncChange PrepareToSyncUninstallExtension( | 101 syncer::SyncChange PrepareToSyncUninstallExtension( |
99 const extensions::Extension* extension, | 102 const extensions::Extension* extension, |
100 bool extensions_ready); | 103 bool extensions_ready); |
101 void ProcessSyncUninstallExtension(const std::string& extension_id, | 104 void ProcessSyncUninstallExtension(const std::string& extension_id, |
102 const syncer::SyncChange& sync_change); | 105 const syncer::SyncChange& sync_change); |
103 | 106 |
104 void SyncEnableExtension(const extensions::Extension& extension); | 107 void SyncEnableExtension(const extensions::Extension& extension); |
105 void SyncDisableExtension(const extensions::Extension& extension); | 108 void SyncDisableExtension(const extensions::Extension& extension); |
106 | 109 |
107 void SyncOrderingChange(const std::string& extension_id); | 110 void SyncOrderingChange(const std::string& extension_id); |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 | 151 |
149 // 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 |
150 // have started happening. It will cause sync to call us back | 153 // have started happening. It will cause sync to call us back |
151 // asynchronously via MergeDataAndStartSyncing as soon as possible. | 154 // asynchronously via MergeDataAndStartSyncing as soon as possible. |
152 syncer::SyncableService::StartSyncFlare flare_; | 155 syncer::SyncableService::StartSyncFlare flare_; |
153 | 156 |
154 DISALLOW_COPY_AND_ASSIGN(ExtensionSyncService); | 157 DISALLOW_COPY_AND_ASSIGN(ExtensionSyncService); |
155 }; | 158 }; |
156 | 159 |
157 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SYNC_SERVICE_H_ | 160 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SYNC_SERVICE_H_ |
OLD | NEW |