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 // | 4 // |
5 // Defines ChangeReorderBuffer, which can be used to sort a list of item | 5 // Defines ChangeReorderBuffer, which can be used to sort a list of item |
6 // actions to achieve the ordering constraint required by the SyncObserver | 6 // actions to achieve the ordering constraint required by the SyncObserver |
7 // interface of the SyncAPI. | 7 // interface of the SyncAPI. |
8 | 8 |
9 #ifndef SYNC_INTERNAL_API_CHANGE_REORDER_BUFFER_H_ | 9 #ifndef SYNC_INTERNAL_API_CHANGE_REORDER_BUFFER_H_ |
10 #define SYNC_INTERNAL_API_CHANGE_REORDER_BUFFER_H_ | 10 #define SYNC_INTERNAL_API_CHANGE_REORDER_BUFFER_H_ |
11 #pragma once | |
12 | 11 |
13 #include <map> | 12 #include <map> |
14 #include <vector> | 13 #include <vector> |
15 | 14 |
16 #include "base/compiler_specific.h" | 15 #include "base/compiler_specific.h" |
17 #include "base/memory/linked_ptr.h" | 16 #include "base/memory/linked_ptr.h" |
18 #include "sync/internal_api/public/base_transaction.h" | 17 #include "sync/internal_api/public/base_transaction.h" |
19 #include "sync/internal_api/public/change_record.h" | 18 #include "sync/internal_api/public/change_record.h" |
20 #include "sync/protocol/sync.pb.h" | 19 #include "sync/protocol/sync.pb.h" |
21 | 20 |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 | 114 |
116 // Stores type-specific extra data per-ID. | 115 // Stores type-specific extra data per-ID. |
117 ExtraDataMap extra_data_; | 116 ExtraDataMap extra_data_; |
118 | 117 |
119 DISALLOW_COPY_AND_ASSIGN(ChangeReorderBuffer); | 118 DISALLOW_COPY_AND_ASSIGN(ChangeReorderBuffer); |
120 }; | 119 }; |
121 | 120 |
122 } // namespace syncer | 121 } // namespace syncer |
123 | 122 |
124 #endif // SYNC_INTERNAL_API_CHANGE_REORDER_BUFFER_H_ | 123 #endif // SYNC_INTERNAL_API_CHANGE_REORDER_BUFFER_H_ |
OLD | NEW |