| 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 // An UpdateApplicator is used to iterate over a number of unapplied updates, | 5 // An UpdateApplicator is used to iterate over a number of unapplied updates, |
| 6 // applying them to the client using the given syncer session. | 6 // applying them to the client using the given syncer session. |
| 7 // | 7 // |
| 8 // UpdateApplicator might resemble an iterator, but it actually keeps retrying | 8 // UpdateApplicator might resemble an iterator, but it actually keeps retrying |
| 9 // failed updates until no remaining updates can be successfully applied. | 9 // failed updates until no remaining updates can be successfully applied. |
| 10 | 10 |
| 11 #ifndef SYNC_ENGINE_UPDATE_APPLICATOR_H_ | 11 #ifndef SYNC_ENGINE_UPDATE_APPLICATOR_H_ |
| 12 #define SYNC_ENGINE_UPDATE_APPLICATOR_H_ | 12 #define SYNC_ENGINE_UPDATE_APPLICATOR_H_ |
| 13 #pragma once | 13 #pragma once |
| 14 | 14 |
| 15 #include <vector> | 15 #include <vector> |
| 16 | 16 |
| 17 #include "base/basictypes.h" | 17 #include "base/basictypes.h" |
| 18 #include "base/port.h" | 18 #include "base/port.h" |
| 19 #include "sync/internal_api/public/engine/model_safe_worker.h" | 19 #include "sync/internal_api/public/engine/model_safe_worker.h" |
| 20 #include "sync/syncable/syncable_id.h" | 20 #include "sync/syncable/syncable_id.h" |
| 21 | 21 |
| 22 namespace syncable { | 22 namespace syncable { |
| 23 class WriteTransaction; | 23 class WriteTransaction; |
| 24 class Entry; | 24 class Entry; |
| 25 } | 25 } |
| 26 | 26 |
| 27 namespace csync { | 27 namespace syncer { |
| 28 | 28 |
| 29 namespace sessions { | 29 namespace sessions { |
| 30 class ConflictProgress; | 30 class ConflictProgress; |
| 31 class UpdateProgress; | 31 class UpdateProgress; |
| 32 } | 32 } |
| 33 | 33 |
| 34 class ConflictResolver; | 34 class ConflictResolver; |
| 35 class Cryptographer; | 35 class Cryptographer; |
| 36 | 36 |
| 37 class UpdateApplicator { | 37 class UpdateApplicator { |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 bool progress_; | 102 bool progress_; |
| 103 | 103 |
| 104 const ModelSafeRoutingInfo routing_info_; | 104 const ModelSafeRoutingInfo routing_info_; |
| 105 | 105 |
| 106 // Track the result of the attempts to update applications. | 106 // Track the result of the attempts to update applications. |
| 107 ResultTracker application_results_; | 107 ResultTracker application_results_; |
| 108 | 108 |
| 109 DISALLOW_COPY_AND_ASSIGN(UpdateApplicator); | 109 DISALLOW_COPY_AND_ASSIGN(UpdateApplicator); |
| 110 }; | 110 }; |
| 111 | 111 |
| 112 } // namespace csync | 112 } // namespace syncer |
| 113 | 113 |
| 114 #endif // SYNC_ENGINE_UPDATE_APPLICATOR_H_ | 114 #endif // SYNC_ENGINE_UPDATE_APPLICATOR_H_ |
| OLD | NEW |