Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(180)

Side by Side Diff: sync/internal_api/sync_rollback_manager_base.cc

Issue 322333004: sync: Inject sync/'s dependency on invalidations (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add missing files Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 } 124 }
125 } 125 }
126 126
127 ready_task.Run(); 127 ready_task.Run();
128 } 128 }
129 129
130 void SyncRollbackManagerBase::OnInvalidatorStateChange(InvalidatorState state) { 130 void SyncRollbackManagerBase::OnInvalidatorStateChange(InvalidatorState state) {
131 } 131 }
132 132
133 void SyncRollbackManagerBase::OnIncomingInvalidation( 133 void SyncRollbackManagerBase::OnIncomingInvalidation(
134 const ObjectIdInvalidationMap& invalidation_map) { 134 syncer::ModelType type,
135 scoped_ptr<InvalidationInterface> invalidation) {
135 NOTREACHED(); 136 NOTREACHED();
136 } 137 }
137 138
138 void SyncRollbackManagerBase::AddObserver(SyncManager::Observer* observer) { 139 void SyncRollbackManagerBase::AddObserver(SyncManager::Observer* observer) {
139 observers_.AddObserver(observer); 140 observers_.AddObserver(observer);
140 } 141 }
141 142
142 void SyncRollbackManagerBase::RemoveObserver(SyncManager::Observer* observer) { 143 void SyncRollbackManagerBase::RemoveObserver(SyncManager::Observer* observer) {
143 observers_.RemoveObserver(observer); 144 observers_.RemoveObserver(observer);
144 } 145 }
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 224
224 void SyncRollbackManagerBase::NotifyInitializationFailure() { 225 void SyncRollbackManagerBase::NotifyInitializationFailure() {
225 FOR_EACH_OBSERVER( 226 FOR_EACH_OBSERVER(
226 SyncManager::Observer, observers_, 227 SyncManager::Observer, observers_,
227 OnInitializationComplete( 228 OnInitializationComplete(
228 MakeWeakHandle(base::WeakPtr<JsBackend>()), 229 MakeWeakHandle(base::WeakPtr<JsBackend>()),
229 MakeWeakHandle(base::WeakPtr<DataTypeDebugInfoListener>()), 230 MakeWeakHandle(base::WeakPtr<DataTypeDebugInfoListener>()),
230 false, InitialSyncEndedTypes())); 231 false, InitialSyncEndedTypes()));
231 } 232 }
232 233
233 std::string SyncRollbackManagerBase::GetOwnerName() const {
234 return "";
235 }
236
237 syncer::SyncCoreProxy* SyncRollbackManagerBase::GetSyncCoreProxy() { 234 syncer::SyncCoreProxy* SyncRollbackManagerBase::GetSyncCoreProxy() {
238 return NULL; 235 return NULL;
239 } 236 }
240 237
241 ScopedVector<syncer::ProtocolEvent> 238 ScopedVector<syncer::ProtocolEvent>
242 SyncRollbackManagerBase::GetBufferedProtocolEvents() { 239 SyncRollbackManagerBase::GetBufferedProtocolEvents() {
243 return ScopedVector<syncer::ProtocolEvent>().Pass(); 240 return ScopedVector<syncer::ProtocolEvent>().Pass();
244 } 241 }
245 242
246 scoped_ptr<base::ListValue> SyncRollbackManagerBase::GetAllNodesForType( 243 scoped_ptr<base::ListValue> SyncRollbackManagerBase::GetAllNodesForType(
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 334
338 void SyncRollbackManagerBase::UnregisterDirectoryTypeDebugInfoObserver( 335 void SyncRollbackManagerBase::UnregisterDirectoryTypeDebugInfoObserver(
339 syncer::TypeDebugInfoObserver* observer) {} 336 syncer::TypeDebugInfoObserver* observer) {}
340 337
341 bool SyncRollbackManagerBase::HasDirectoryTypeDebugInfoObserver( 338 bool SyncRollbackManagerBase::HasDirectoryTypeDebugInfoObserver(
342 syncer::TypeDebugInfoObserver* observer) { return false; } 339 syncer::TypeDebugInfoObserver* observer) { return false; }
343 340
344 void SyncRollbackManagerBase::RequestEmitDebugInfo() {} 341 void SyncRollbackManagerBase::RequestEmitDebugInfo() {}
345 342
346 } // namespace syncer 343 } // namespace syncer
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698