| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 // | |
| 5 // Constants used by SyncScheduler when polling servers for updates. | |
| 6 | 4 |
| 7 #ifndef COMPONENTS_SYNC_ENGINE_POLLING_CONSTANTS_H_ | 5 #ifndef COMPONENTS_SYNC_ENGINE_POLLING_CONSTANTS_H_ |
| 8 #define COMPONENTS_SYNC_ENGINE_POLLING_CONSTANTS_H_ | 6 #define COMPONENTS_SYNC_ENGINE_POLLING_CONSTANTS_H_ |
| 9 | 7 |
| 10 #include <stdint.h> | 8 #include <stdint.h> |
| 11 | 9 |
| 12 namespace syncer { | 10 namespace syncer { |
| 13 | 11 |
| 12 // Constants used by SyncScheduler when polling servers for updates. |
| 14 extern const int64_t kDefaultShortPollIntervalSeconds; | 13 extern const int64_t kDefaultShortPollIntervalSeconds; |
| 15 extern const int64_t kDefaultLongPollIntervalSeconds; | 14 extern const int64_t kDefaultLongPollIntervalSeconds; |
| 16 extern const int64_t kMaxBackoffSeconds; | 15 extern const int64_t kMaxBackoffSeconds; |
| 17 extern const int kBackoffRandomizationFactor; | 16 extern const int kBackoffRandomizationFactor; |
| 18 extern const int kInitialBackoffRetrySeconds; | 17 extern const int kInitialBackoffRetrySeconds; |
| 19 extern const int kInitialBackoffShortRetrySeconds; | 18 extern const int kInitialBackoffShortRetrySeconds; |
| 20 extern const int kInitialBackoffImmediateRetrySeconds; | 19 extern const int kInitialBackoffImmediateRetrySeconds; |
| 21 | 20 |
| 22 } // namespace syncer | 21 } // namespace syncer |
| 23 | 22 |
| 24 #endif // COMPONENTS_SYNC_ENGINE_POLLING_CONSTANTS_H_ | 23 #endif // COMPONENTS_SYNC_ENGINE_POLLING_CONSTANTS_H_ |
| OLD | NEW |