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 | |
14 | 13 |
15 #include <vector> | 14 #include <vector> |
16 | 15 |
17 #include "base/basictypes.h" | 16 #include "base/basictypes.h" |
18 #include "base/port.h" | 17 #include "base/port.h" |
19 #include "sync/internal_api/public/engine/model_safe_worker.h" | 18 #include "sync/internal_api/public/engine/model_safe_worker.h" |
20 #include "sync/syncable/syncable_id.h" | 19 #include "sync/syncable/syncable_id.h" |
21 | 20 |
22 namespace syncer { | 21 namespace syncer { |
23 | 22 |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 | 104 |
106 // Track the result of the attempts to update applications. | 105 // Track the result of the attempts to update applications. |
107 ResultTracker application_results_; | 106 ResultTracker application_results_; |
108 | 107 |
109 DISALLOW_COPY_AND_ASSIGN(UpdateApplicator); | 108 DISALLOW_COPY_AND_ASSIGN(UpdateApplicator); |
110 }; | 109 }; |
111 | 110 |
112 } // namespace syncer | 111 } // namespace syncer |
113 | 112 |
114 #endif // SYNC_ENGINE_UPDATE_APPLICATOR_H_ | 113 #endif // SYNC_ENGINE_UPDATE_APPLICATOR_H_ |
OLD | NEW |