| 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 0ab03eb210407d99d844ae0d8c0ac16736a9e578..05cf6c7e68fb1e91185f6e09bd2544428a1ba7a3 100644
|
| --- a/webkit/fileapi/syncable/local_file_sync_context.h
|
| +++ b/webkit/fileapi/syncable/local_file_sync_context.h
|
| @@ -51,6 +51,9 @@ class WEBKIT_STORAGE_EXPORT LocalFileSyncContext
|
| const LocalFileSyncInfo& sync_file_info)>
|
| LocalFileSyncInfoCallback;
|
|
|
| + typedef base::Callback<void(bool has_pending_changes)>
|
| + HasPendingLocalChangeCallback;
|
| +
|
| LocalFileSyncContext(base::SingleThreadTaskRunner* ui_task_runner,
|
| base::SingleThreadTaskRunner* io_task_runner);
|
|
|
| @@ -116,6 +119,13 @@ class WEBKIT_STORAGE_EXPORT LocalFileSyncContext
|
| const FileSystemURL& url,
|
| const SyncFileMetadataCallback& callback);
|
|
|
| + // Returns true via |callback| if the given file |url| has local pending
|
| + // changes.
|
| + void HasPendingLocalChanges(
|
| + FileSystemContext* file_system_context,
|
| + const FileSystemURL& url,
|
| + const HasPendingLocalChangeCallback& callback);
|
| +
|
| // They must be called on UI thread.
|
| void AddOriginChangeObserver(LocalOriginChangeObserver* observer);
|
| void RemoveOriginChangeObserver(LocalOriginChangeObserver* observer);
|
|
|