Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(108)

Side by Side Diff: chrome/browser/sync_file_system/remote_file_sync_service.h

Issue 407073003: [SyncFS] Add completion callback to PromoteDemotedChanges (1/3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698