OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_SYNC_FILE_SYSTEM_REMOTE_FILE_SYNC_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_REMOTE_FILE_SYNC_SERVICE_H_ |
6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_REMOTE_FILE_SYNC_SERVICE_H_ | 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_REMOTE_FILE_SYNC_SERVICE_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 virtual void DumpDatabase(const ListCallback& callback) = 0; | 204 virtual void DumpDatabase(const ListCallback& callback) = 0; |
205 | 205 |
206 // Enables or disables the background sync. | 206 // Enables or disables the background sync. |
207 // Setting this to false should disable the synchronization (and make | 207 // Setting this to false should disable the synchronization (and make |
208 // the service state to REMOTE_SERVICE_DISABLED), while setting this to | 208 // the service state to REMOTE_SERVICE_DISABLED), while setting this to |
209 // true does not necessarily mean the service is actually turned on | 209 // true does not necessarily mean the service is actually turned on |
210 // (for example if Chrome is offline the service state will become | 210 // (for example if Chrome is offline the service state will become |
211 // REMOTE_SERVICE_TEMPORARY_UNAVAILABLE). | 211 // REMOTE_SERVICE_TEMPORARY_UNAVAILABLE). |
212 virtual void SetSyncEnabled(bool enabled) = 0; | 212 virtual void SetSyncEnabled(bool enabled) = 0; |
213 | 213 |
214 virtual void PromoteDemotedChanges() = 0; | 214 virtual void PromoteDemotedChanges(const base::Closure& callback) = 0; |
215 | 215 |
216 private: | 216 private: |
217 DISALLOW_COPY_AND_ASSIGN(RemoteFileSyncService); | 217 DISALLOW_COPY_AND_ASSIGN(RemoteFileSyncService); |
218 }; | 218 }; |
219 | 219 |
220 } // namespace sync_file_system | 220 } // namespace sync_file_system |
221 | 221 |
222 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_REMOTE_FILE_SYNC_SERVICE_H_ | 222 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_REMOTE_FILE_SYNC_SERVICE_H_ |
OLD | NEW |