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

Unified Diff: webkit/fileapi/syncable/local_file_sync_context.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: 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);

Powered by Google App Engine
This is Rietveld 408576698