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

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
« no previous file with comments | « no previous file | chrome/browser/sync_file_system/sync_process_runner.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_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..bd4b2f8496513ed594c99924cca61cef8a80179e 100644
--- a/chrome/browser/sync_file_system/sync_process_runner.h
+++ b/chrome/browser/sync_file_system/sync_process_runner.h
@@ -25,6 +25,24 @@ 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.
+ // The delay backs off exponentially from initial value on repeated failure.
+ static const int64 kSyncDelaySlowInMilliseconds;
+
+ // Default delay when there're no changes.
+ static const int64 kSyncDelayMaxInMilliseconds;
+
class Client {
public:
virtual ~Client() {}
« no previous file with comments | « no previous file | chrome/browser/sync_file_system/sync_process_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698