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

Unified Diff: chrome/browser/sync_file_system/drive_backend/conflict_resolver.h

Issue 302003013: [SyncFS] Run V2 backend tasks as SyncTask (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/sync_file_system/drive_backend/conflict_resolver.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync_file_system/drive_backend/conflict_resolver.h
diff --git a/chrome/browser/sync_file_system/drive_backend/conflict_resolver.h b/chrome/browser/sync_file_system/drive_backend/conflict_resolver.h
index 0e07668794039a2be0ab4607a90fece71f54ca6e..e18a869d76c853cbed18696b52a6e86708a14839 100644
--- a/chrome/browser/sync_file_system/drive_backend/conflict_resolver.h
+++ b/chrome/browser/sync_file_system/drive_backend/conflict_resolver.h
@@ -36,31 +36,32 @@ class TrackerIDSet;
// of the active tracker.
// If multiple trackers have the same local path or the same remote file,
// ConflictResolver picks up one of them and delete others.
-class ConflictResolver : public ExclusiveTask {
+class ConflictResolver : public SyncTask {
public:
typedef std::vector<std::string> FileIDList;
explicit ConflictResolver(SyncEngineContext* sync_context);
virtual ~ConflictResolver();
- virtual void RunExclusive(const SyncStatusCallback& callback) OVERRIDE;
+ virtual void RunPreflight(scoped_ptr<SyncTaskToken> token) OVERRIDE;
+ void RunExclusive(scoped_ptr<SyncTaskToken> token);
private:
typedef std::pair<std::string, std::string> FileIDAndETag;
- void DetachFromNonPrimaryParents(const SyncStatusCallback& callback);
- void DidDetachFromParent(const SyncStatusCallback& callback,
+ void DetachFromNonPrimaryParents(scoped_ptr<SyncTaskToken> token);
+ void DidDetachFromParent(scoped_ptr<SyncTaskToken> token,
google_apis::GDataErrorCode error);
std::string PickPrimaryFile(const TrackerIDSet& trackers);
- void RemoveNonPrimaryFiles(const SyncStatusCallback& callback);
- void DidRemoveFile(const SyncStatusCallback& callback,
+ void RemoveNonPrimaryFiles(scoped_ptr<SyncTaskToken> token);
+ void DidRemoveFile(scoped_ptr<SyncTaskToken> token,
const std::string& file_id,
google_apis::GDataErrorCode error);
void UpdateFileMetadata(const std::string& file_id,
- const SyncStatusCallback& callback);
+ scoped_ptr<SyncTaskToken> token);
void DidGetRemoteMetadata(const std::string& file_id,
- const SyncStatusCallback& callback,
+ scoped_ptr<SyncTaskToken> token,
google_apis::GDataErrorCode error,
scoped_ptr<google_apis::FileResource> entry);
« no previous file with comments | « no previous file | chrome/browser/sync_file_system/drive_backend/conflict_resolver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698