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 // | 4 // |
5 // Constants used by SyncScheduler when polling servers for updates. | 5 // Constants used by SyncScheduler when polling servers for updates. |
6 | 6 |
7 #ifndef SYNC_INTERNAL_API_PUBLIC_ENGINE_POLLING_CONSTANTS_H_ | 7 #ifndef SYNC_INTERNAL_API_PUBLIC_ENGINE_POLLING_CONSTANTS_H_ |
8 #define SYNC_INTERNAL_API_PUBLIC_ENGINE_POLLING_CONSTANTS_H_ | 8 #define SYNC_INTERNAL_API_PUBLIC_ENGINE_POLLING_CONSTANTS_H_ |
9 | 9 |
| 10 #include <stdint.h> |
| 11 |
10 #include "sync/base/sync_export.h" | 12 #include "sync/base/sync_export.h" |
11 | 13 |
12 namespace syncer { | 14 namespace syncer { |
13 | 15 |
14 SYNC_EXPORT extern const int64 kDefaultShortPollIntervalSeconds; | 16 SYNC_EXPORT extern const int64_t kDefaultShortPollIntervalSeconds; |
15 SYNC_EXPORT extern const int64 kDefaultLongPollIntervalSeconds; | 17 SYNC_EXPORT extern const int64_t kDefaultLongPollIntervalSeconds; |
16 SYNC_EXPORT extern const int64 kMaxBackoffSeconds; | 18 SYNC_EXPORT extern const int64_t kMaxBackoffSeconds; |
17 SYNC_EXPORT extern const int kBackoffRandomizationFactor; | 19 SYNC_EXPORT extern const int kBackoffRandomizationFactor; |
18 SYNC_EXPORT extern const int kInitialBackoffRetrySeconds; | 20 SYNC_EXPORT extern const int kInitialBackoffRetrySeconds; |
19 SYNC_EXPORT extern const int kInitialBackoffShortRetrySeconds; | 21 SYNC_EXPORT extern const int kInitialBackoffShortRetrySeconds; |
20 SYNC_EXPORT extern const int kInitialBackoffImmediateRetrySeconds; | 22 SYNC_EXPORT extern const int kInitialBackoffImmediateRetrySeconds; |
21 | 23 |
22 } // namespace syncer | 24 } // namespace syncer |
23 | 25 |
24 #endif // SYNC_INTERNAL_API_PUBLIC_ENGINE_POLLING_CONSTANTS_H_ | 26 #endif // SYNC_INTERNAL_API_PUBLIC_ENGINE_POLLING_CONSTANTS_H_ |
OLD | NEW |