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