| 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 // A class representing an attempt to synchronize the local syncable data | 5 // A class representing an attempt to synchronize the local syncable data |
| 6 // store with a sync server. A SyncCycle instance is passed as a stateful | 6 // store with a sync server. A SyncCycle instance is passed as a stateful |
| 7 // bundle throughout the sync cycle. The SyncCycle is not reused across | 7 // bundle throughout the sync cycle. The SyncCycle is not reused across |
| 8 // sync cycles; each cycle starts with a new one. | 8 // sync cycles; each cycle starts with a new one. |
| 9 | 9 |
| 10 #ifndef COMPONENTS_SYNC_ENGINE_IMPL_CYCLE_SYNC_CYCLE_H_ | 10 #ifndef COMPONENTS_SYNC_ENGINE_IMPL_CYCLE_SYNC_CYCLE_H_ |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 StatusController* mutable_status_controller() { | 116 StatusController* mutable_status_controller() { |
| 117 return status_controller_.get(); | 117 return status_controller_.get(); |
| 118 } | 118 } |
| 119 | 119 |
| 120 private: | 120 private: |
| 121 SyncCycle(SyncCycleContext* context, Delegate* delegate); | 121 SyncCycle(SyncCycleContext* context, Delegate* delegate); |
| 122 | 122 |
| 123 // The context for this cycle, guaranteed to outlive |this|. | 123 // The context for this cycle, guaranteed to outlive |this|. |
| 124 SyncCycleContext* const context_; | 124 SyncCycleContext* const context_; |
| 125 | 125 |
| 126 // The delegate for this cycle, must never be NULL. | 126 // The delegate for this cycle, must never be null. |
| 127 Delegate* const delegate_; | 127 Delegate* const delegate_; |
| 128 | 128 |
| 129 // Our controller for various status and error counters. | 129 // Our controller for various status and error counters. |
| 130 std::unique_ptr<StatusController> status_controller_; | 130 std::unique_ptr<StatusController> status_controller_; |
| 131 | 131 |
| 132 DISALLOW_COPY_AND_ASSIGN(SyncCycle); | 132 DISALLOW_COPY_AND_ASSIGN(SyncCycle); |
| 133 }; | 133 }; |
| 134 | 134 |
| 135 } // namespace syncer | 135 } // namespace syncer |
| 136 | 136 |
| 137 #endif // COMPONENTS_SYNC_ENGINE_IMPL_CYCLE_SYNC_CYCLE_H_ | 137 #endif // COMPONENTS_SYNC_ENGINE_IMPL_CYCLE_SYNC_CYCLE_H_ |
| OLD | NEW |