OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 #include "sync/engine/conflict_resolver.h" | 5 #include "sync/engine/conflict_resolver.h" |
6 | 6 |
7 #include <list> | 7 #include <list> |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/metrics/histogram.h" | 11 #include "base/metrics/histogram.h" |
12 #include "sync/engine/conflict_util.h" | 12 #include "sync/engine/conflict_util.h" |
13 #include "sync/engine/syncer_util.h" | 13 #include "sync/engine/syncer_util.h" |
14 #include "sync/sessions/status_controller.h" | 14 #include "sync/sessions/status_controller.h" |
15 #include "sync/syncable/directory.h" | 15 #include "sync/syncable/directory.h" |
16 #include "sync/syncable/mutable_entry.h" | 16 #include "sync/syncable/mutable_entry.h" |
17 #include "sync/syncable/write_transaction.h" | 17 #include "sync/syncable/syncable_write_transaction.h" |
18 #include "sync/util/cryptographer.h" | 18 #include "sync/util/cryptographer.h" |
19 | 19 |
20 using std::list; | 20 using std::list; |
21 using std::set; | 21 using std::set; |
22 | 22 |
23 namespace syncer { | 23 namespace syncer { |
24 | 24 |
25 using sessions::StatusController; | 25 using sessions::StatusController; |
26 using syncable::Directory; | 26 using syncable::Directory; |
27 using syncable::Entry; | 27 using syncable::Entry; |
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
298 id = predecessors.back(); | 298 id = predecessors.back(); |
299 predecessors.pop_back(); | 299 predecessors.pop_back(); |
300 ProcessSimpleConflict(trans, id, cryptographer, status); | 300 ProcessSimpleConflict(trans, id, cryptographer, status); |
301 processed_items.insert(id); | 301 processed_items.insert(id); |
302 } | 302 } |
303 } | 303 } |
304 return; | 304 return; |
305 } | 305 } |
306 | 306 |
307 } // namespace syncer | 307 } // namespace syncer |
OLD | NEW |