| 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 // | |
| 5 // Defines ChangeReorderBuffer, which can be used to sort a list of item | |
| 6 // actions to achieve the ordering constraint required by the SyncObserver | |
| 7 // interface of the SyncAPI. | |
| 8 | 4 |
| 9 #ifndef COMPONENTS_SYNC_SYNCABLE_CHANGE_REORDER_BUFFER_H_ | 5 #ifndef COMPONENTS_SYNC_SYNCABLE_CHANGE_REORDER_BUFFER_H_ |
| 10 #define COMPONENTS_SYNC_SYNCABLE_CHANGE_REORDER_BUFFER_H_ | 6 #define COMPONENTS_SYNC_SYNCABLE_CHANGE_REORDER_BUFFER_H_ |
| 11 | 7 |
| 12 #include <stdint.h> | 8 #include <stdint.h> |
| 13 | 9 |
| 14 #include <map> | 10 #include <map> |
| 15 #include <vector> | 11 #include <vector> |
| 16 | 12 |
| 17 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 | 81 |
| 86 // Stores type-specific extra data per-ID. | 82 // Stores type-specific extra data per-ID. |
| 87 ExtraDataMap extra_data_; | 83 ExtraDataMap extra_data_; |
| 88 | 84 |
| 89 DISALLOW_COPY_AND_ASSIGN(ChangeReorderBuffer); | 85 DISALLOW_COPY_AND_ASSIGN(ChangeReorderBuffer); |
| 90 }; | 86 }; |
| 91 | 87 |
| 92 } // namespace syncer | 88 } // namespace syncer |
| 93 | 89 |
| 94 #endif // COMPONENTS_SYNC_SYNCABLE_CHANGE_REORDER_BUFFER_H_ | 90 #endif // COMPONENTS_SYNC_SYNCABLE_CHANGE_REORDER_BUFFER_H_ |
| OLD | NEW |