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_BASE_H_ | 5 #ifndef SYNC_INTERNAL_API_SYNC_ROLLBACK_MANAGER_BASE_H_ |
6 #define SYNC_INTERNAL_API_SYNC_ROLLBACK_MANAGER_BASE_H_ | 6 #define SYNC_INTERNAL_API_SYNC_ROLLBACK_MANAGER_BASE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 UserShare* GetUserShare() override; | 63 UserShare* GetUserShare() override; |
64 const std::string cache_guid() override; | 64 const std::string cache_guid() override; |
65 bool ReceivedExperiment(Experiments* experiments) override; | 65 bool ReceivedExperiment(Experiments* experiments) override; |
66 bool HasUnsyncedItems() override; | 66 bool HasUnsyncedItems() override; |
67 SyncEncryptionHandler* GetEncryptionHandler() override; | 67 SyncEncryptionHandler* GetEncryptionHandler() override; |
68 void RefreshTypes(ModelTypeSet types) override; | 68 void RefreshTypes(ModelTypeSet types) override; |
69 SyncContextProxy* GetSyncContextProxy() override; | 69 SyncContextProxy* GetSyncContextProxy() override; |
70 ScopedVector<ProtocolEvent> GetBufferedProtocolEvents() override; | 70 ScopedVector<ProtocolEvent> GetBufferedProtocolEvents() override; |
71 scoped_ptr<base::ListValue> GetAllNodesForType( | 71 scoped_ptr<base::ListValue> GetAllNodesForType( |
72 syncer::ModelType type) override; | 72 syncer::ModelType type) override; |
| 73 void ClearServerData(const ClearServerDataCallback& callback) override; |
73 | 74 |
74 // DirectoryChangeDelegate implementation. | 75 // DirectoryChangeDelegate implementation. |
75 void HandleTransactionCompleteChangeEvent( | 76 void HandleTransactionCompleteChangeEvent( |
76 ModelTypeSet models_with_changes) override; | 77 ModelTypeSet models_with_changes) override; |
77 ModelTypeSet HandleTransactionEndingChangeEvent( | 78 ModelTypeSet HandleTransactionEndingChangeEvent( |
78 const syncable::ImmutableWriteTransactionInfo& write_transaction_info, | 79 const syncable::ImmutableWriteTransactionInfo& write_transaction_info, |
79 syncable::BaseTransaction* trans) override; | 80 syncable::BaseTransaction* trans) override; |
80 void HandleCalculateChangesChangeEventFromSyncApi( | 81 void HandleCalculateChangesChangeEventFromSyncApi( |
81 const syncable::ImmutableWriteTransactionInfo& write_transaction_info, | 82 const syncable::ImmutableWriteTransactionInfo& write_transaction_info, |
82 syncable::BaseTransaction* trans, | 83 syncable::BaseTransaction* trans, |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 bool initialized_; | 137 bool initialized_; |
137 | 138 |
138 base::WeakPtrFactory<SyncRollbackManagerBase> weak_ptr_factory_; | 139 base::WeakPtrFactory<SyncRollbackManagerBase> weak_ptr_factory_; |
139 | 140 |
140 DISALLOW_COPY_AND_ASSIGN(SyncRollbackManagerBase); | 141 DISALLOW_COPY_AND_ASSIGN(SyncRollbackManagerBase); |
141 }; | 142 }; |
142 | 143 |
143 } // namespace syncer | 144 } // namespace syncer |
144 | 145 |
145 #endif // SYNC_INTERNAL_API_SYNC_ROLLBACK_MANAGER_BASE_H_ | 146 #endif // SYNC_INTERNAL_API_SYNC_ROLLBACK_MANAGER_BASE_H_ |
OLD | NEW |