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

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

Issue 375123003: [SyncFS] Expose constants in SyncProcessRunner (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/sync_process_runner.h
diff --git a/chrome/browser/sync_file_system/sync_process_runner.h b/chrome/browser/sync_file_system/sync_process_runner.h
index 13c4bd163c463988070c4e59aab052bd1cf81f92..1d771937f0302a0ee2bce9b2e3b046a4a239e6fd 100644
--- a/chrome/browser/sync_file_system/sync_process_runner.h
+++ b/chrome/browser/sync_file_system/sync_process_runner.h
@@ -25,6 +25,23 @@ class SyncFileSystemService;
// with each other.
class SyncProcessRunner {
public:
+ // Default delay when more changes are available.
+ static const int64 kSyncDelayInMilliseconds;
+
+ // Default delay when the previous change has had an error (but remote service
+ // is running).
+ static const int64 kSyncDelayWithSyncError;
+
+ // Default delay when there're more than 10 pending changes.
+ static const int64 kSyncDelayFastInMilliseconds;
+ static const int kPendingChangeThresholdForFastSync;
+
+ // Default delay when remote service is temporarily unavailable.
+ static const int64 kSyncDelaySlowInMilliseconds;
+
+ // Default delay when there're no changes.
+ static const int64 kSyncDelayMaxInMilliseconds;
+
class Client {
public:
virtual ~Client() {}

Powered by Google App Engine
This is Rietveld 408576698