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

Unified Diff: chrome/browser/sync_file_system/local/local_file_sync_context.h

Issue 407073003: [SyncFS] Add completion callback to PromoteDemotedChanges (1/3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 months 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/local_file_sync_context.h
diff --git a/chrome/browser/sync_file_system/local/local_file_sync_context.h b/chrome/browser/sync_file_system/local/local_file_sync_context.h
index 0decd08b2c5573a808e7c21cc055f679ca0745c5..ce47b4728bab22e76baae01c24237eab1d206a1f 100644
--- a/chrome/browser/sync_file_system/local/local_file_sync_context.h
+++ b/chrome/browser/sync_file_system/local/local_file_sync_context.h
@@ -189,8 +189,10 @@ class LocalFileSyncContext
const HasPendingLocalChangeCallback& callback);
void PromoteDemotedChanges(const GURL& origin,
- fileapi::FileSystemContext* file_system_context);
- void UpdateChangesForOrigin(const GURL& origin);
+ fileapi::FileSystemContext* file_system_context,
+ const base::Closure& callback);
+ void UpdateChangesForOrigin(const GURL& origin,
+ const base::Closure& callback);
// They must be called on UI thread.
void AddOriginChangeObserver(LocalOriginChangeObserver* observer);
@@ -227,13 +229,14 @@ class LocalFileSyncContext
// Starts a timer to eventually call NotifyAvailableChangesOnIOThread.
// The caller is expected to update origins_with_pending_changes_ before
// calling this.
- void ScheduleNotifyChangesUpdatedOnIOThread();
+ void ScheduleNotifyChangesUpdatedOnIOThread(const base::Closure& callback);
// Called by the internal timer on IO thread to notify changes to UI thread.
- void NotifyAvailableChangesOnIOThread();
+ void NotifyAvailableChangesOnIOThread(const base::Closure& callback);
// Called from NotifyAvailableChangesOnIOThread.
- void NotifyAvailableChanges(const std::set<GURL>& origins);
+ void NotifyAvailableChanges(const std::set<GURL>& origins,
+ const base::Closure& callback);
// Helper routines for MaybeInitializeFileSystemContext.
void InitializeFileSystemContextOnIOThread(

Powered by Google App Engine
This is Rietveld 408576698