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

Side by Side Diff: chrome/browser/sync_file_system/drive_backend/sync_worker.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_DRIVE_BACKEND_SYNC_WORKER_H_ 5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_SYNC_WORKER_H_
6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_SYNC_WORKER_H_ 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_SYNC_WORKER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 virtual void ProcessRemoteChange(const SyncFileCallback& callback) OVERRIDE; 82 virtual void ProcessRemoteChange(const SyncFileCallback& callback) OVERRIDE;
83 virtual void SetRemoteChangeProcessor( 83 virtual void SetRemoteChangeProcessor(
84 RemoteChangeProcessorOnWorker* remote_change_processor_on_worker) 84 RemoteChangeProcessorOnWorker* remote_change_processor_on_worker)
85 OVERRIDE; 85 OVERRIDE;
86 virtual RemoteServiceState GetCurrentState() const OVERRIDE; 86 virtual RemoteServiceState GetCurrentState() const OVERRIDE;
87 virtual void GetOriginStatusMap( 87 virtual void GetOriginStatusMap(
88 const RemoteFileSyncService::StatusMapCallback& callback) OVERRIDE; 88 const RemoteFileSyncService::StatusMapCallback& callback) OVERRIDE;
89 virtual scoped_ptr<base::ListValue> DumpFiles(const GURL& origin) OVERRIDE; 89 virtual scoped_ptr<base::ListValue> DumpFiles(const GURL& origin) OVERRIDE;
90 virtual scoped_ptr<base::ListValue> DumpDatabase() OVERRIDE; 90 virtual scoped_ptr<base::ListValue> DumpDatabase() OVERRIDE;
91 virtual void SetSyncEnabled(bool enabled) OVERRIDE; 91 virtual void SetSyncEnabled(bool enabled) OVERRIDE;
92 virtual void PromoteDemotedChanges() OVERRIDE; 92 virtual void PromoteDemotedChanges(const base::Closure& callback) OVERRIDE;
93 virtual void ApplyLocalChange( 93 virtual void ApplyLocalChange(
94 const FileChange& local_change, 94 const FileChange& local_change,
95 const base::FilePath& local_path, 95 const base::FilePath& local_path,
96 const SyncFileMetadata& local_metadata, 96 const SyncFileMetadata& local_metadata,
97 const fileapi::FileSystemURL& url, 97 const fileapi::FileSystemURL& url,
98 const SyncStatusCallback& callback) OVERRIDE; 98 const SyncStatusCallback& callback) OVERRIDE;
99 virtual void OnNotificationReceived() OVERRIDE; 99 virtual void OnNotificationReceived() OVERRIDE;
100 virtual void OnReadyToSendRequests() OVERRIDE; 100 virtual void OnReadyToSendRequests() OVERRIDE;
101 virtual void OnRefreshTokenInvalid() OVERRIDE; 101 virtual void OnRefreshTokenInvalid() OVERRIDE;
102 virtual void OnNetworkChanged( 102 virtual void OnNetworkChanged(
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 base::SequenceChecker sequence_checker_; 183 base::SequenceChecker sequence_checker_;
184 184
185 base::WeakPtrFactory<SyncWorker> weak_ptr_factory_; 185 base::WeakPtrFactory<SyncWorker> weak_ptr_factory_;
186 DISALLOW_COPY_AND_ASSIGN(SyncWorker); 186 DISALLOW_COPY_AND_ASSIGN(SyncWorker);
187 }; 187 };
188 188
189 } // namespace drive_backend 189 } // namespace drive_backend
190 } // namespace sync_file_system 190 } // namespace sync_file_system
191 191
192 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_SYNC_WORKER_H_ 192 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_SYNC_WORKER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698