| 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 #include "sync/internal_api/sync_rollback_manager_base.h" | 5 #include "sync/internal_api/sync_rollback_manager_base.h" |
| 6 | 6 |
| 7 #include <stdint.h> |
| 8 |
| 7 #include "sync/internal_api/public/base/model_type.h" | 9 #include "sync/internal_api/public/base/model_type.h" |
| 8 #include "sync/internal_api/public/read_node.h" | 10 #include "sync/internal_api/public/read_node.h" |
| 9 #include "sync/internal_api/public/read_transaction.h" | 11 #include "sync/internal_api/public/read_transaction.h" |
| 10 #include "sync/internal_api/public/write_transaction.h" | 12 #include "sync/internal_api/public/write_transaction.h" |
| 11 #include "sync/syncable/directory_backing_store.h" | 13 #include "sync/syncable/directory_backing_store.h" |
| 12 #include "sync/syncable/mutable_entry.h" | 14 #include "sync/syncable/mutable_entry.h" |
| 13 | 15 |
| 14 namespace { | 16 namespace { |
| 15 | 17 |
| 16 // Permanent bookmark folders as defined in bookmark_model_associator.cc. | 18 // Permanent bookmark folders as defined in bookmark_model_associator.cc. |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 ModelTypeSet models_with_changes) { | 173 ModelTypeSet models_with_changes) { |
| 172 } | 174 } |
| 173 | 175 |
| 174 ModelTypeSet SyncRollbackManagerBase::HandleTransactionEndingChangeEvent( | 176 ModelTypeSet SyncRollbackManagerBase::HandleTransactionEndingChangeEvent( |
| 175 const syncable::ImmutableWriteTransactionInfo& write_transaction_info, | 177 const syncable::ImmutableWriteTransactionInfo& write_transaction_info, |
| 176 syncable::BaseTransaction* trans) { | 178 syncable::BaseTransaction* trans) { |
| 177 return ModelTypeSet(); | 179 return ModelTypeSet(); |
| 178 } | 180 } |
| 179 | 181 |
| 180 void SyncRollbackManagerBase::HandleCalculateChangesChangeEventFromSyncApi( | 182 void SyncRollbackManagerBase::HandleCalculateChangesChangeEventFromSyncApi( |
| 181 const syncable::ImmutableWriteTransactionInfo& write_transaction_info, | 183 const syncable::ImmutableWriteTransactionInfo& write_transaction_info, |
| 182 syncable::BaseTransaction* trans, | 184 syncable::BaseTransaction* trans, |
| 183 std::vector<int64>* entries_changed) { | 185 std::vector<int64_t>* entries_changed) {} |
| 184 } | |
| 185 | 186 |
| 186 void SyncRollbackManagerBase::HandleCalculateChangesChangeEventFromSyncer( | 187 void SyncRollbackManagerBase::HandleCalculateChangesChangeEventFromSyncer( |
| 187 const syncable::ImmutableWriteTransactionInfo& write_transaction_info, | 188 const syncable::ImmutableWriteTransactionInfo& write_transaction_info, |
| 188 syncable::BaseTransaction* trans, | 189 syncable::BaseTransaction* trans, |
| 189 std::vector<int64>* entries_changed) { | 190 std::vector<int64_t>* entries_changed) {} |
| 190 } | |
| 191 | 191 |
| 192 void SyncRollbackManagerBase::OnTransactionWrite( | 192 void SyncRollbackManagerBase::OnTransactionWrite( |
| 193 const syncable::ImmutableWriteTransactionInfo& write_transaction_info, | 193 const syncable::ImmutableWriteTransactionInfo& write_transaction_info, |
| 194 ModelTypeSet models_with_changes) { | 194 ModelTypeSet models_with_changes) { |
| 195 } | 195 } |
| 196 | 196 |
| 197 void SyncRollbackManagerBase::NotifyInitializationSuccess() { | 197 void SyncRollbackManagerBase::NotifyInitializationSuccess() { |
| 198 FOR_EACH_OBSERVER( | 198 FOR_EACH_OBSERVER( |
| 199 SyncManager::Observer, observers_, | 199 SyncManager::Observer, observers_, |
| 200 OnInitializationComplete( | 200 OnInitializationComplete( |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 | 320 |
| 321 bool SyncRollbackManagerBase::HasDirectoryTypeDebugInfoObserver( | 321 bool SyncRollbackManagerBase::HasDirectoryTypeDebugInfoObserver( |
| 322 syncer::TypeDebugInfoObserver* observer) { return false; } | 322 syncer::TypeDebugInfoObserver* observer) { return false; } |
| 323 | 323 |
| 324 void SyncRollbackManagerBase::RequestEmitDebugInfo() {} | 324 void SyncRollbackManagerBase::RequestEmitDebugInfo() {} |
| 325 | 325 |
| 326 void SyncRollbackManagerBase::ClearServerData( | 326 void SyncRollbackManagerBase::ClearServerData( |
| 327 const ClearServerDataCallback& callback) {} | 327 const ClearServerDataCallback& callback) {} |
| 328 | 328 |
| 329 } // namespace syncer | 329 } // namespace syncer |
| OLD | NEW |