Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(149)

Unified Diff: sync/engine/update_applicator.h

Issue 11192071: sync: Merge apply updates and resolve conflicts (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Retry (base files were missing) Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sync/engine/syncer_unittest.cc ('k') | sync/engine/update_applicator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/engine/update_applicator.h
diff --git a/sync/engine/update_applicator.h b/sync/engine/update_applicator.h
index c5b27a2e51b1bed671377e2a00076e1f6729ff5e..b04325cc22127db92fa5886a1f62e95375825e8d 100644
--- a/sync/engine/update_applicator.h
+++ b/sync/engine/update_applicator.h
@@ -35,8 +35,6 @@ class Cryptographer;
class UpdateApplicator {
public:
- typedef std::vector<int64>::iterator UpdateIterator;
-
UpdateApplicator(Cryptographer* cryptographer,
const ModelSafeRoutingInfo& routes,
ModelSafeGroup group_filter);
@@ -44,8 +42,23 @@ class UpdateApplicator {
// Attempt to apply the specified updates.
void AttemptApplications(syncable::WriteTransaction* trans,
- const std::vector<int64>& handles,
- sessions::StatusController* status);
+ const std::vector<int64>& handles);
+
+ int updates_applied() {
+ return updates_applied_;
+ }
+
+ int encryption_conflicts() {
+ return encryption_conflicts_;
+ }
+
+ int hierarchy_conflicts() {
+ return hierarchy_conflicts_;
+ }
+
+ const std::set<syncable::Id>& simple_conflict_ids() {
+ return simple_conflict_ids_;
+ }
private:
// If true, AttemptOneApplication will skip over |entry| and return true.
@@ -59,6 +72,11 @@ class UpdateApplicator {
const ModelSafeRoutingInfo routing_info_;
DISALLOW_COPY_AND_ASSIGN(UpdateApplicator);
+
+ int updates_applied_;
+ int encryption_conflicts_;
+ int hierarchy_conflicts_;
+ std::set<syncable::Id> simple_conflict_ids_;
};
} // namespace syncer
« no previous file with comments | « sync/engine/syncer_unittest.cc ('k') | sync/engine/update_applicator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698