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

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

Issue 11421197: Implement SyncFileSystemService::GetFileSyncStatus method (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: indent fix 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
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,
« no previous file with comments | « chrome/browser/sync_file_system/drive_file_sync_service.cc ('k') | chrome/browser/sync_file_system/local_file_sync_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698