Index: chrome/browser/sync_file_system/local_file_sync_service.h |
diff --git a/chrome/browser/sync_file_system/local_file_sync_service.h b/chrome/browser/sync_file_system/local_file_sync_service.h |
index 659c0e2e4791ab51bf70b01562666416cab93d5d..8efa7489bbb712fd0e8b8e46d61c9fae3382546c 100644 |
--- a/chrome/browser/sync_file_system/local_file_sync_service.h |
+++ b/chrome/browser/sync_file_system/local_file_sync_service.h |
@@ -52,6 +52,9 @@ class LocalFileSyncService |
DISALLOW_COPY_AND_ASSIGN(Observer); |
}; |
+ typedef base::Callback<void(bool has_pending_changes)> |
+ HasPendingLocalChangeCallback; |
+ |
LocalFileSyncService(); |
virtual ~LocalFileSyncService(); |
@@ -80,6 +83,12 @@ class LocalFileSyncService |
void ProcessLocalChange(LocalChangeProcessor* processor, |
const fileapi::SyncFileCallback& callback); |
+ // Returns true via |callback| if the given file |url| has local pending |
+ // changes. |
+ void HasPendingLocalChanges( |
+ const fileapi::FileSystemURL& url, |
+ const HasPendingLocalChangeCallback& callback); |
+ |
// Returns the metadata of a remote file pointed by |url|. |
virtual void GetLocalFileMetadata( |
const fileapi::FileSystemURL& url, |