| 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 "sync/internal_api/public/base/model_type.h" | 7 #include "sync/internal_api/public/base/model_type.h" |
| 8 #include "sync/internal_api/public/internal_components_factory.h" | 8 #include "sync/internal_api/public/internal_components_factory.h" |
| 9 #include "sync/internal_api/public/read_node.h" | 9 #include "sync/internal_api/public/read_node.h" |
| 10 #include "sync/internal_api/public/read_transaction.h" | 10 #include "sync/internal_api/public/read_transaction.h" |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 } | 126 } |
| 127 } | 127 } |
| 128 | 128 |
| 129 ready_task.Run(); | 129 ready_task.Run(); |
| 130 } | 130 } |
| 131 | 131 |
| 132 void SyncRollbackManagerBase::OnInvalidatorStateChange(InvalidatorState state) { | 132 void SyncRollbackManagerBase::OnInvalidatorStateChange(InvalidatorState state) { |
| 133 } | 133 } |
| 134 | 134 |
| 135 void SyncRollbackManagerBase::OnIncomingInvalidation( | 135 void SyncRollbackManagerBase::OnIncomingInvalidation( |
| 136 const ObjectIdInvalidationMap& invalidation_map) { | 136 syncer::ModelType type, |
| 137 scoped_ptr<InvalidationInterface> invalidation) { |
| 137 NOTREACHED(); | 138 NOTREACHED(); |
| 138 } | 139 } |
| 139 | 140 |
| 140 void SyncRollbackManagerBase::AddObserver(SyncManager::Observer* observer) { | 141 void SyncRollbackManagerBase::AddObserver(SyncManager::Observer* observer) { |
| 141 observers_.AddObserver(observer); | 142 observers_.AddObserver(observer); |
| 142 } | 143 } |
| 143 | 144 |
| 144 void SyncRollbackManagerBase::RemoveObserver(SyncManager::Observer* observer) { | 145 void SyncRollbackManagerBase::RemoveObserver(SyncManager::Observer* observer) { |
| 145 observers_.RemoveObserver(observer); | 146 observers_.RemoveObserver(observer); |
| 146 } | 147 } |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 | 227 |
| 227 void SyncRollbackManagerBase::NotifyInitializationFailure() { | 228 void SyncRollbackManagerBase::NotifyInitializationFailure() { |
| 228 FOR_EACH_OBSERVER( | 229 FOR_EACH_OBSERVER( |
| 229 SyncManager::Observer, observers_, | 230 SyncManager::Observer, observers_, |
| 230 OnInitializationComplete( | 231 OnInitializationComplete( |
| 231 MakeWeakHandle(base::WeakPtr<JsBackend>()), | 232 MakeWeakHandle(base::WeakPtr<JsBackend>()), |
| 232 MakeWeakHandle(base::WeakPtr<DataTypeDebugInfoListener>()), | 233 MakeWeakHandle(base::WeakPtr<DataTypeDebugInfoListener>()), |
| 233 false, ModelTypeSet())); | 234 false, ModelTypeSet())); |
| 234 } | 235 } |
| 235 | 236 |
| 236 std::string SyncRollbackManagerBase::GetOwnerName() const { | |
| 237 return ""; | |
| 238 } | |
| 239 | |
| 240 syncer::SyncContextProxy* SyncRollbackManagerBase::GetSyncContextProxy() { | 237 syncer::SyncContextProxy* SyncRollbackManagerBase::GetSyncContextProxy() { |
| 241 return NULL; | 238 return NULL; |
| 242 } | 239 } |
| 243 | 240 |
| 244 ScopedVector<syncer::ProtocolEvent> | 241 ScopedVector<syncer::ProtocolEvent> |
| 245 SyncRollbackManagerBase::GetBufferedProtocolEvents() { | 242 SyncRollbackManagerBase::GetBufferedProtocolEvents() { |
| 246 return ScopedVector<syncer::ProtocolEvent>().Pass(); | 243 return ScopedVector<syncer::ProtocolEvent>().Pass(); |
| 247 } | 244 } |
| 248 | 245 |
| 249 scoped_ptr<base::ListValue> SyncRollbackManagerBase::GetAllNodesForType( | 246 scoped_ptr<base::ListValue> SyncRollbackManagerBase::GetAllNodesForType( |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 340 | 337 |
| 341 void SyncRollbackManagerBase::UnregisterDirectoryTypeDebugInfoObserver( | 338 void SyncRollbackManagerBase::UnregisterDirectoryTypeDebugInfoObserver( |
| 342 syncer::TypeDebugInfoObserver* observer) {} | 339 syncer::TypeDebugInfoObserver* observer) {} |
| 343 | 340 |
| 344 bool SyncRollbackManagerBase::HasDirectoryTypeDebugInfoObserver( | 341 bool SyncRollbackManagerBase::HasDirectoryTypeDebugInfoObserver( |
| 345 syncer::TypeDebugInfoObserver* observer) { return false; } | 342 syncer::TypeDebugInfoObserver* observer) { return false; } |
| 346 | 343 |
| 347 void SyncRollbackManagerBase::RequestEmitDebugInfo() {} | 344 void SyncRollbackManagerBase::RequestEmitDebugInfo() {} |
| 348 | 345 |
| 349 } // namespace syncer | 346 } // namespace syncer |
| OLD | NEW |