| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 CHROME_BROWSER_SYNC_ENGINE_UPDATE_APPLICATOR_H_ | 11 #ifndef CHROME_BROWSER_SYNC_ENGINE_UPDATE_APPLICATOR_H_ |
| 12 #define CHROME_BROWSER_SYNC_ENGINE_UPDATE_APPLICATOR_H_ | 12 #define CHROME_BROWSER_SYNC_ENGINE_UPDATE_APPLICATOR_H_ |
| 13 #pragma once | 13 #pragma once |
| 14 | 14 |
| 15 #include <set> | |
| 16 #include <vector> | 15 #include <vector> |
| 17 | 16 |
| 18 #include "base/basictypes.h" | 17 #include "base/basictypes.h" |
| 19 #include "base/port.h" | 18 #include "base/port.h" |
| 20 #include "chrome/browser/sync/engine/model_safe_worker.h" | 19 #include "chrome/browser/sync/engine/model_safe_worker.h" |
| 21 #include "chrome/browser/sync/syncable/syncable.h" | 20 #include "chrome/browser/sync/syncable/syncable.h" |
| 22 | 21 |
| 23 namespace browser_sync { | 22 namespace browser_sync { |
| 24 | 23 |
| 25 namespace sessions { | 24 namespace sessions { |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 const ModelSafeRoutingInfo routing_info_; | 76 const ModelSafeRoutingInfo routing_info_; |
| 78 | 77 |
| 79 // Track the result of the various items. | 78 // Track the result of the various items. |
| 80 std::vector<syncable::Id> conflicting_ids_; | 79 std::vector<syncable::Id> conflicting_ids_; |
| 81 std::vector<syncable::Id> successful_ids_; | 80 std::vector<syncable::Id> successful_ids_; |
| 82 }; | 81 }; |
| 83 | 82 |
| 84 } // namespace browser_sync | 83 } // namespace browser_sync |
| 85 | 84 |
| 86 #endif // CHROME_BROWSER_SYNC_ENGINE_UPDATE_APPLICATOR_H_ | 85 #endif // CHROME_BROWSER_SYNC_ENGINE_UPDATE_APPLICATOR_H_ |
| OLD | NEW |