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 COMPONENTS_SYNC_ENGINE_POLLING_CONSTANTS_H_ | 7 #ifndef COMPONENTS_SYNC_ENGINE_POLLING_CONSTANTS_H_ |
8 #define COMPONENTS_SYNC_ENGINE_POLLING_CONSTANTS_H_ | 8 #define COMPONENTS_SYNC_ENGINE_POLLING_CONSTANTS_H_ |
9 | 9 |
10 #include <stdint.h> | 10 #include <stdint.h> |
11 | 11 |
12 #include "components/sync/base/sync_export.h" | |
13 | |
14 namespace syncer { | 12 namespace syncer { |
15 | 13 |
16 SYNC_EXPORT extern const int64_t kDefaultShortPollIntervalSeconds; | 14 extern const int64_t kDefaultShortPollIntervalSeconds; |
17 SYNC_EXPORT extern const int64_t kDefaultLongPollIntervalSeconds; | 15 extern const int64_t kDefaultLongPollIntervalSeconds; |
18 SYNC_EXPORT extern const int64_t kMaxBackoffSeconds; | 16 extern const int64_t kMaxBackoffSeconds; |
19 SYNC_EXPORT extern const int kBackoffRandomizationFactor; | 17 extern const int kBackoffRandomizationFactor; |
20 SYNC_EXPORT extern const int kInitialBackoffRetrySeconds; | 18 extern const int kInitialBackoffRetrySeconds; |
21 SYNC_EXPORT extern const int kInitialBackoffShortRetrySeconds; | 19 extern const int kInitialBackoffShortRetrySeconds; |
22 SYNC_EXPORT extern const int kInitialBackoffImmediateRetrySeconds; | 20 extern const int kInitialBackoffImmediateRetrySeconds; |
23 | 21 |
24 } // namespace syncer | 22 } // namespace syncer |
25 | 23 |
26 #endif // COMPONENTS_SYNC_ENGINE_POLLING_CONSTANTS_H_ | 24 #endif // COMPONENTS_SYNC_ENGINE_POLLING_CONSTANTS_H_ |
OLD | NEW |