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/internal_api/change_reorder_buffer.h" | 5 #include "sync/internal_api/change_reorder_buffer.h" |
6 | 6 |
7 #include <limits> | 7 #include <limits> |
8 #include <queue> | 8 #include <queue> |
9 #include <set> | 9 #include <set> |
10 #include <utility> // for pair<> | 10 #include <utility> // for pair<> |
11 | 11 |
12 #include "sync/internal_api/public/base/model_type.h" | 12 #include "sync/internal_api/public/base/model_type.h" |
13 #include "sync/internal_api/public/read_node.h" | 13 #include "sync/internal_api/public/read_node.h" |
14 #include "sync/syncable/base_transaction.h" | |
15 #include "sync/syncable/directory.h" | 14 #include "sync/syncable/directory.h" |
16 #include "sync/syncable/entry.h" | 15 #include "sync/syncable/entry.h" |
| 16 #include "sync/syncable/syncable_base_transaction.h" |
17 | 17 |
18 using std::numeric_limits; | 18 using std::numeric_limits; |
19 using std::pair; | 19 using std::pair; |
20 using std::queue; | 20 using std::queue; |
21 using std::set; | 21 using std::set; |
22 | 22 |
23 namespace syncer { | 23 namespace syncer { |
24 | 24 |
25 // Traversal provides a way to collect a set of nodes from the syncable | 25 // Traversal provides a way to collect a set of nodes from the syncable |
26 // directory structure and then traverse them, along with any intermediate | 26 // directory structure and then traverse them, along with any intermediate |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 id = child.Get(syncable::NEXT_ID); | 219 id = child.Get(syncable::NEXT_ID); |
220 } | 220 } |
221 } | 221 } |
222 } | 222 } |
223 | 223 |
224 *changes = ImmutableChangeRecordList(&changelist); | 224 *changes = ImmutableChangeRecordList(&changelist); |
225 return true; | 225 return true; |
226 } | 226 } |
227 | 227 |
228 } // namespace syncer | 228 } // namespace syncer |
OLD | NEW |