| 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 virtual void HandleCalculateChangesChangeEventFromSyncer( | 106 virtual void HandleCalculateChangesChangeEventFromSyncer( |
| 107 const syncable::ImmutableWriteTransactionInfo& write_transaction_info, | 107 const syncable::ImmutableWriteTransactionInfo& write_transaction_info, |
| 108 syncable::BaseTransaction* trans, | 108 syncable::BaseTransaction* trans, |
| 109 std::vector<int64>* entries_changed) OVERRIDE; | 109 std::vector<int64>* entries_changed) OVERRIDE; |
| 110 | 110 |
| 111 // syncable::TransactionObserver implementation. | 111 // syncable::TransactionObserver implementation. |
| 112 virtual void OnTransactionWrite( | 112 virtual void OnTransactionWrite( |
| 113 const syncable::ImmutableWriteTransactionInfo& write_transaction_info, | 113 const syncable::ImmutableWriteTransactionInfo& write_transaction_info, |
| 114 ModelTypeSet models_with_changes) OVERRIDE; | 114 ModelTypeSet models_with_changes) OVERRIDE; |
| 115 | 115 |
| 116 protected: |
| 117 ObserverList<SyncManager::Observer>* GetObservers(); |
| 118 |
| 116 virtual void RegisterDirectoryTypeDebugInfoObserver( | 119 virtual void RegisterDirectoryTypeDebugInfoObserver( |
| 117 syncer::TypeDebugInfoObserver* observer) OVERRIDE; | 120 syncer::TypeDebugInfoObserver* observer) OVERRIDE; |
| 118 virtual void UnregisterDirectoryTypeDebugInfoObserver( | 121 virtual void UnregisterDirectoryTypeDebugInfoObserver( |
| 119 syncer::TypeDebugInfoObserver* observer) OVERRIDE; | 122 syncer::TypeDebugInfoObserver* observer) OVERRIDE; |
| 120 virtual bool HasDirectoryTypeDebugInfoObserver( | 123 virtual bool HasDirectoryTypeDebugInfoObserver( |
| 121 syncer::TypeDebugInfoObserver* observer) OVERRIDE; | 124 syncer::TypeDebugInfoObserver* observer) OVERRIDE; |
| 122 virtual void RequestEmitDebugInfo() OVERRIDE; | 125 virtual void RequestEmitDebugInfo() OVERRIDE; |
| 123 | 126 |
| 124 private: | 127 private: |
| 125 void NotifyInitializationSuccess(); | 128 void NotifyInitializationSuccess(); |
| (...skipping 15 matching lines...) Expand all Loading... |
| 141 base::WeakPtrFactory<SyncRollbackManagerBase> weak_ptr_factory_; | 144 base::WeakPtrFactory<SyncRollbackManagerBase> weak_ptr_factory_; |
| 142 | 145 |
| 143 scoped_ptr<SyncEncryptionHandler> dummy_handler_; | 146 scoped_ptr<SyncEncryptionHandler> dummy_handler_; |
| 144 | 147 |
| 145 DISALLOW_COPY_AND_ASSIGN(SyncRollbackManagerBase); | 148 DISALLOW_COPY_AND_ASSIGN(SyncRollbackManagerBase); |
| 146 }; | 149 }; |
| 147 | 150 |
| 148 } // namespace syncer | 151 } // namespace syncer |
| 149 | 152 |
| 150 #endif // SYNC_INTERNAL_API_SYNC_ROLLBACK_MANAGER_BASE_H_ | 153 #endif // SYNC_INTERNAL_API_SYNC_ROLLBACK_MANAGER_BASE_H_ |
| OLD | NEW |