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 #ifndef COMPONENTS_SYNC_ENGINE_IMPL_SYNC_SCHEDULER_IMPL_H_ | 5 #ifndef COMPONENTS_SYNC_ENGINE_IMPL_SYNC_SCHEDULER_IMPL_H_ |
6 #define COMPONENTS_SYNC_ENGINE_IMPL_SYNC_SCHEDULER_IMPL_H_ | 6 #define COMPONENTS_SYNC_ENGINE_IMPL_SYNC_SCHEDULER_IMPL_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <memory> | 9 #include <memory> |
10 #include <string> | 10 #include <string> |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 CANARY_PRIORITY | 94 CANARY_PRIORITY |
95 }; | 95 }; |
96 | 96 |
97 enum PollAdjustType { | 97 enum PollAdjustType { |
98 // Restart the poll interval. | 98 // Restart the poll interval. |
99 FORCE_RESET, | 99 FORCE_RESET, |
100 // Restart the poll interval only if its length has changed. | 100 // Restart the poll interval only if its length has changed. |
101 UPDATE_INTERVAL, | 101 UPDATE_INTERVAL, |
102 }; | 102 }; |
103 | 103 |
104 friend class SyncSchedulerTest; | 104 friend class SyncSchedulerImplTest; |
105 friend class SyncSchedulerWhiteboxTest; | 105 friend class SyncSchedulerWhiteboxTest; |
106 friend class SyncerTest; | 106 friend class SyncerTest; |
107 | 107 |
108 FRIEND_TEST_ALL_PREFIXES(SyncSchedulerTest, TransientPollFailure); | 108 FRIEND_TEST_ALL_PREFIXES(SyncSchedulerTest, TransientPollFailure); |
109 FRIEND_TEST_ALL_PREFIXES(SyncSchedulerTest, | 109 FRIEND_TEST_ALL_PREFIXES(SyncSchedulerTest, |
110 ServerConnectionChangeDuringBackoff); | 110 ServerConnectionChangeDuringBackoff); |
111 FRIEND_TEST_ALL_PREFIXES(SyncSchedulerTest, | 111 FRIEND_TEST_ALL_PREFIXES(SyncSchedulerTest, |
112 ConnectionChangeCanaryPreemptedByNudge); | 112 ConnectionChangeCanaryPreemptedByNudge); |
113 FRIEND_TEST_ALL_PREFIXES(BackoffTriggersSyncSchedulerTest, | 113 FRIEND_TEST_ALL_PREFIXES(BackoffTriggersSyncSchedulerTest, |
114 FailGetEncryptionKey); | 114 FailGetEncryptionKey); |
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
315 // A second factory specially for weak_handle_this_, to allow the handle | 315 // A second factory specially for weak_handle_this_, to allow the handle |
316 // to be const and alleviate threading concerns. | 316 // to be const and alleviate threading concerns. |
317 base::WeakPtrFactory<SyncSchedulerImpl> weak_ptr_factory_for_weak_handle_; | 317 base::WeakPtrFactory<SyncSchedulerImpl> weak_ptr_factory_for_weak_handle_; |
318 | 318 |
319 DISALLOW_COPY_AND_ASSIGN(SyncSchedulerImpl); | 319 DISALLOW_COPY_AND_ASSIGN(SyncSchedulerImpl); |
320 }; | 320 }; |
321 | 321 |
322 } // namespace syncer | 322 } // namespace syncer |
323 | 323 |
324 #endif // COMPONENTS_SYNC_ENGINE_IMPL_SYNC_SCHEDULER_IMPL_H_ | 324 #endif // COMPONENTS_SYNC_ENGINE_IMPL_SYNC_SCHEDULER_IMPL_H_ |
OLD | NEW |