Index: webkit/fileapi/syncable/local_file_sync_context.h |
diff --git a/webkit/fileapi/syncable/local_file_sync_context.h b/webkit/fileapi/syncable/local_file_sync_context.h |
index 05cf6c7e68fb1e91185f6e09bd2544428a1ba7a3..1bc5b3a8ff685af86db169f36004068a0e03a5d5 100644 |
--- a/webkit/fileapi/syncable/local_file_sync_context.h |
+++ b/webkit/fileapi/syncable/local_file_sync_context.h |
@@ -76,11 +76,17 @@ class WEBKIT_STORAGE_EXPORT LocalFileSyncContext |
void GetFileForLocalSync(FileSystemContext* file_system_context, |
const LocalFileSyncInfoCallback& callback); |
- // Notifies the sync context that the local sync has finished (either |
- // successfully or with an error) for |url|. |
+ // Clears all pending local changes for |url|. |done_callback| is called |
+ // when the changes are cleared. |
// This method must be called on UI thread. |
- void FinalizeSyncForURL(FileSystemContext* file_system_context, |
- const FileSystemURL& url); |
+ void ClearChangesForURL(FileSystemContext* file_system_context, |
+ const FileSystemURL& url, |
+ const base::Closure& done_callback); |
+ |
+ // A local or remote sync has been finished (either successfully or |
+ // with an error). Clears the internal sync flag and enable writing for |url|. |
+ // This method must be called on UI thread. |
+ void ClearSyncFlagForURL(const FileSystemURL& url); |
// Prepares for sync |url| by disabling writes on |url|. |
// If the target |url| is being written and cannot start sync it |
@@ -208,7 +214,7 @@ class WEBKIT_STORAGE_EXPORT LocalFileSyncContext |
const FileSystemURL& url, |
const LocalFileSyncInfoCallback& callback); |
- // Helper routine for FinalizeSyncForURL. |
+ // Helper routine for ClearSyncFlagForURL. |
void EnableWritingOnIOThread(const FileSystemURL& url); |
// Callback routine for ApplyRemoteChange. |