OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef SYNC_INTERNAL_API_SYNC_ROLLBACK_MANAGER_H_ | 5 #ifndef SYNC_INTERNAL_API_SYNC_ROLLBACK_MANAGER_H_ |
6 #define SYNC_INTERNAL_API_SYNC_ROLLBACK_MANAGER_H_ | 6 #define SYNC_INTERNAL_API_SYNC_ROLLBACK_MANAGER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 29 matching lines...) Expand all Loading... |
40 ReportUnrecoverableErrorFunction | 40 ReportUnrecoverableErrorFunction |
41 report_unrecoverable_error_function, | 41 report_unrecoverable_error_function, |
42 CancelationSignal* cancelation_signal) OVERRIDE; | 42 CancelationSignal* cancelation_signal) OVERRIDE; |
43 virtual void StartSyncingNormally( | 43 virtual void StartSyncingNormally( |
44 const ModelSafeRoutingInfo& routing_info) OVERRIDE; | 44 const ModelSafeRoutingInfo& routing_info) OVERRIDE; |
45 | 45 |
46 private: | 46 private: |
47 // Deletes specified entries in local model. | 47 // Deletes specified entries in local model. |
48 SyncerError DeleteOnWorkerThread(ModelType type, std::vector<int64> handles); | 48 SyncerError DeleteOnWorkerThread(ModelType type, std::vector<int64> handles); |
49 | 49 |
| 50 void NotifyRollbackDone(); |
| 51 |
50 std::map<ModelSafeGroup, scoped_refptr<ModelSafeWorker> > workers_; | 52 std::map<ModelSafeGroup, scoped_refptr<ModelSafeWorker> > workers_; |
51 | 53 |
52 SyncManager::ChangeDelegate* change_delegate_; | 54 SyncManager::ChangeDelegate* change_delegate_; |
53 | 55 |
54 // Types that can be rolled back. | 56 // Types that can be rolled back. |
55 ModelTypeSet rollback_ready_types_; | 57 ModelTypeSet rollback_ready_types_; |
56 | 58 |
57 DISALLOW_COPY_AND_ASSIGN(SyncRollbackManager); | 59 DISALLOW_COPY_AND_ASSIGN(SyncRollbackManager); |
58 }; | 60 }; |
59 | 61 |
60 } // namespace syncer | 62 } // namespace syncer |
61 | 63 |
62 #endif // SYNC_INTERNAL_API_SYNC_ROLLBACK_MANAGER_H_ | 64 #endif // SYNC_INTERNAL_API_SYNC_ROLLBACK_MANAGER_H_ |
OLD | NEW |