OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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_SYNCER_H_ | 5 #ifndef COMPONENTS_SYNC_ENGINE_IMPL_SYNCER_H_ |
6 #define COMPONENTS_SYNC_ENGINE_IMPL_SYNCER_H_ | 6 #define COMPONENTS_SYNC_ENGINE_IMPL_SYNCER_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <utility> | 10 #include <utility> |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 // abort any blocking operations. | 117 // abort any blocking operations. |
118 SyncerError BuildAndPostCommits(ModelTypeSet request_types, | 118 SyncerError BuildAndPostCommits(ModelTypeSet request_types, |
119 NudgeTracker* nudge_tracker, | 119 NudgeTracker* nudge_tracker, |
120 SyncCycle* cycle, | 120 SyncCycle* cycle, |
121 CommitProcessor* commit_processor); | 121 CommitProcessor* commit_processor); |
122 | 122 |
123 void HandleCycleBegin(SyncCycle* cycle); | 123 void HandleCycleBegin(SyncCycle* cycle); |
124 bool HandleCycleEnd(SyncCycle* cycle, | 124 bool HandleCycleEnd(SyncCycle* cycle, |
125 sync_pb::GetUpdatesCallerInfo::GetUpdatesSource source); | 125 sync_pb::GetUpdatesCallerInfo::GetUpdatesSource source); |
126 | 126 |
127 syncer::CancelationSignal* const cancelation_signal_; | 127 CancelationSignal* const cancelation_signal_; |
128 | 128 |
129 // Whether the syncer is in the middle of a sync attempt. | 129 // Whether the syncer is in the middle of a sync attempt. |
130 bool is_syncing_; | 130 bool is_syncing_; |
131 | 131 |
132 DISALLOW_COPY_AND_ASSIGN(Syncer); | 132 DISALLOW_COPY_AND_ASSIGN(Syncer); |
133 }; | 133 }; |
134 | 134 |
135 } // namespace syncer | 135 } // namespace syncer |
136 | 136 |
137 #endif // COMPONENTS_SYNC_ENGINE_IMPL_SYNCER_H_ | 137 #endif // COMPONENTS_SYNC_ENGINE_IMPL_SYNCER_H_ |
OLD | NEW |