| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CHROME_BROWSER_SYNC_ENGINE_CHANGE_REORDER_BUFFER_H_ | 9 #ifndef CHROME_BROWSER_SYNC_INTERNAL_API_CHANGE_REORDER_BUFFER_H_ |
| 10 #define CHROME_BROWSER_SYNC_ENGINE_CHANGE_REORDER_BUFFER_H_ | 10 #define CHROME_BROWSER_SYNC_INTERNAL_API_CHANGE_REORDER_BUFFER_H_ |
| 11 #pragma once | 11 #pragma once |
| 12 | 12 |
| 13 #include <map> | 13 #include <map> |
| 14 #include <vector> | 14 #include <vector> |
| 15 | 15 |
| 16 #include "base/memory/linked_ptr.h" | 16 #include "base/memory/linked_ptr.h" |
| 17 #include "chrome/browser/sync/internal_api/base_transaction.h" | 17 #include "chrome/browser/sync/internal_api/base_transaction.h" |
| 18 #include "chrome/browser/sync/internal_api/sync_manager.h" | 18 #include "chrome/browser/sync/internal_api/sync_manager.h" |
| 19 #include "chrome/browser/sync/protocol/sync.pb.h" | 19 #include "chrome/browser/sync/protocol/sync.pb.h" |
| 20 | 20 |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 SpecificsMap specifics_; | 113 SpecificsMap specifics_; |
| 114 | 114 |
| 115 // Stores type-specific extra data per-ID. | 115 // Stores type-specific extra data per-ID. |
| 116 ExtraDataMap extra_data_; | 116 ExtraDataMap extra_data_; |
| 117 | 117 |
| 118 DISALLOW_COPY_AND_ASSIGN(ChangeReorderBuffer); | 118 DISALLOW_COPY_AND_ASSIGN(ChangeReorderBuffer); |
| 119 }; | 119 }; |
| 120 | 120 |
| 121 } // namespace sync_api | 121 } // namespace sync_api |
| 122 | 122 |
| 123 #endif // CHROME_BROWSER_SYNC_ENGINE_CHANGE_REORDER_BUFFER_H_ | 123 #endif // CHROME_BROWSER_SYNC_INTERNAL_API_CHANGE_REORDER_BUFFER_H_ |
| OLD | NEW |