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

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

Issue 480413006: [SyncFS] Add idle callback to SyncFileSystemService for testing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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
« no previous file with comments | « no previous file | chrome/browser/sync_file_system/sync_file_system_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync_file_system/sync_file_system_service.h
diff --git a/chrome/browser/sync_file_system/sync_file_system_service.h b/chrome/browser/sync_file_system/sync_file_system_service.h
index 32b9dc5c945b9b91d487e6f719d97ee5a6fb6eeb..53d3cd506b48de72cede46811adbefcf9b1d227a 100644
--- a/chrome/browser/sync_file_system/sync_file_system_service.h
+++ b/chrome/browser/sync_file_system/sync_file_system_service.h
@@ -80,8 +80,13 @@ class SyncFileSystemService
virtual SyncServiceState GetSyncServiceState() OVERRIDE;
virtual SyncFileSystemService* GetSyncService() OVERRIDE;
+ void OnPromotionCompleted(int* num_running_jobs);
+ void CheckIfIdle();
+
TaskLogger* task_logger() { return &task_logger_; }
+ void CallOnIdleForTesting(const base::Closure& callback);
+
private:
friend class SyncFileSystemServiceFactory;
friend class SyncFileSystemServiceTest;
@@ -182,6 +187,9 @@ class SyncFileSystemService
TaskLogger task_logger_;
ObserverList<SyncEventObserver> observers_;
+ bool promoting_demoted_changes_;
+ base::Closure idle_callback_;
+
DISALLOW_COPY_AND_ASSIGN(SyncFileSystemService);
};
« no previous file with comments | « no previous file | chrome/browser/sync_file_system/sync_file_system_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698