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

Unified Diff: chrome/browser/sync_file_system/remote_change_processor.h

Issue 11437044: Add RemoteChangeProcessor::ClearLocalChanges (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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 | « chrome/browser/sync_file_system/mock_remote_change_processor.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync_file_system/remote_change_processor.h
diff --git a/chrome/browser/sync_file_system/remote_change_processor.h b/chrome/browser/sync_file_system/remote_change_processor.h
index 3aa9b7e1e5287341301ce17ac709bc9be9d31a8c..98f943926ec4ca80d52642528d4c639e5a40fcbb 100644
--- a/chrome/browser/sync_file_system/remote_change_processor.h
+++ b/chrome/browser/sync_file_system/remote_change_processor.h
@@ -61,6 +61,13 @@ class RemoteChangeProcessor {
const fileapi::FileSystemURL& url,
const fileapi::SyncStatusCallback& callback) = 0;
+ // Clears all local changes. This should be called when the remote sync
+ // service reconciled or processed the existing local changes while
+ // processing a remote change.
+ virtual void ClearLocalChanges(
+ const fileapi::FileSystemURL& url,
+ const base::Closure& completion_callback) = 0;
+
// Records a fake local change so that the change will be processed in the
// next local sync.
// This is called when the remote side wants to trigger a local sync
« no previous file with comments | « chrome/browser/sync_file_system/mock_remote_change_processor.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698