| 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 23 matching lines...) Expand all Loading... |
| 34 public: | 34 public: |
| 35 SyncRollbackManagerBase(); | 35 SyncRollbackManagerBase(); |
| 36 ~SyncRollbackManagerBase() override; | 36 ~SyncRollbackManagerBase() override; |
| 37 | 37 |
| 38 // SyncManager implementation. | 38 // SyncManager implementation. |
| 39 ModelTypeSet InitialSyncEndedTypes() override; | 39 ModelTypeSet InitialSyncEndedTypes() override; |
| 40 ModelTypeSet GetTypesWithEmptyProgressMarkerToken( | 40 ModelTypeSet GetTypesWithEmptyProgressMarkerToken( |
| 41 ModelTypeSet types) override; | 41 ModelTypeSet types) override; |
| 42 bool PurgePartiallySyncedTypes() override; | 42 bool PurgePartiallySyncedTypes() override; |
| 43 void UpdateCredentials(const SyncCredentials& credentials) override; | 43 void UpdateCredentials(const SyncCredentials& credentials) override; |
| 44 void StartSyncingNormally(const ModelSafeRoutingInfo& routing_info) override; | 44 void StartSyncingNormally(const ModelSafeRoutingInfo& routing_info, |
| 45 base::Time last_poll_time) override; |
| 45 void ConfigureSyncer(ConfigureReason reason, | 46 void ConfigureSyncer(ConfigureReason reason, |
| 46 ModelTypeSet to_download, | 47 ModelTypeSet to_download, |
| 47 ModelTypeSet to_purge, | 48 ModelTypeSet to_purge, |
| 48 ModelTypeSet to_journal, | 49 ModelTypeSet to_journal, |
| 49 ModelTypeSet to_unapply, | 50 ModelTypeSet to_unapply, |
| 50 const ModelSafeRoutingInfo& new_routing_info, | 51 const ModelSafeRoutingInfo& new_routing_info, |
| 51 const base::Closure& ready_task, | 52 const base::Closure& ready_task, |
| 52 const base::Closure& retry_task) override; | 53 const base::Closure& retry_task) override; |
| 53 void SetInvalidatorEnabled(bool invalidator_enabled) override; | 54 void SetInvalidatorEnabled(bool invalidator_enabled) override; |
| 54 void OnIncomingInvalidation( | 55 void OnIncomingInvalidation( |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 bool initialized_; | 136 bool initialized_; |
| 136 | 137 |
| 137 base::WeakPtrFactory<SyncRollbackManagerBase> weak_ptr_factory_; | 138 base::WeakPtrFactory<SyncRollbackManagerBase> weak_ptr_factory_; |
| 138 | 139 |
| 139 DISALLOW_COPY_AND_ASSIGN(SyncRollbackManagerBase); | 140 DISALLOW_COPY_AND_ASSIGN(SyncRollbackManagerBase); |
| 140 }; | 141 }; |
| 141 | 142 |
| 142 } // namespace syncer | 143 } // namespace syncer |
| 143 | 144 |
| 144 #endif // SYNC_INTERNAL_API_SYNC_ROLLBACK_MANAGER_BASE_H_ | 145 #endif // SYNC_INTERNAL_API_SYNC_ROLLBACK_MANAGER_BASE_H_ |
| OLD | NEW |