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

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

Issue 1253743003: [Sync] Update SyncBackendHost to forward ClearServerData to SyncManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@clearserverdatacommand
Patch Set: Remove unused callback variable Created 5 years, 4 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
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 #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
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
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_
OLDNEW
« no previous file with comments | « sync/internal_api/sync_manager_impl_unittest.cc ('k') | sync/internal_api/sync_rollback_manager_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698