OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_CORE_H_ | 5 #ifndef COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_CORE_H_ |
6 #define COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_CORE_H_ | 6 #define COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_CORE_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 void OnPassphraseTypeChanged(syncer::PassphraseType type, | 133 void OnPassphraseTypeChanged(syncer::PassphraseType type, |
134 base::Time passphrase_time) override; | 134 base::Time passphrase_time) override; |
135 void OnLocalSetPassphraseEncryption( | 135 void OnLocalSetPassphraseEncryption( |
136 const syncer::SyncEncryptionHandler::NigoriState& nigori_state) override; | 136 const syncer::SyncEncryptionHandler::NigoriState& nigori_state) override; |
137 | 137 |
138 // TypeDebugInfoObserver implementation | 138 // TypeDebugInfoObserver implementation |
139 void OnCommitCountersUpdated(syncer::ModelType type, | 139 void OnCommitCountersUpdated(syncer::ModelType type, |
140 const syncer::CommitCounters& counters) override; | 140 const syncer::CommitCounters& counters) override; |
141 void OnUpdateCountersUpdated(syncer::ModelType type, | 141 void OnUpdateCountersUpdated(syncer::ModelType type, |
142 const syncer::UpdateCounters& counters) override; | 142 const syncer::UpdateCounters& counters) override; |
143 void OnStatusCountersUpdated(syncer::ModelType type, | 143 void OnStatusCountersUpdated( |
144 const syncer::StatusCounters& counters) override; | 144 syncer::ModelType type, |
| 145 std::unique_ptr<syncer::StatusCounters> counters) override; |
145 | 146 |
146 // Forwards an invalidation state change to the sync manager. | 147 // Forwards an invalidation state change to the sync manager. |
147 void DoOnInvalidatorStateChange(syncer::InvalidatorState state); | 148 void DoOnInvalidatorStateChange(syncer::InvalidatorState state); |
148 | 149 |
149 // Forwards an invalidation to the sync manager. | 150 // Forwards an invalidation to the sync manager. |
150 void DoOnIncomingInvalidation( | 151 void DoOnIncomingInvalidation( |
151 const syncer::ObjectIdInvalidationMap& invalidation_map); | 152 const syncer::ObjectIdInvalidationMap& invalidation_map); |
152 | 153 |
153 // Note: | 154 // Note: |
154 // | 155 // |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
325 std::map<syncer::ModelType, int64_t> last_invalidation_versions_; | 326 std::map<syncer::ModelType, int64_t> last_invalidation_versions_; |
326 | 327 |
327 base::WeakPtrFactory<SyncBackendHostCore> weak_ptr_factory_; | 328 base::WeakPtrFactory<SyncBackendHostCore> weak_ptr_factory_; |
328 | 329 |
329 DISALLOW_COPY_AND_ASSIGN(SyncBackendHostCore); | 330 DISALLOW_COPY_AND_ASSIGN(SyncBackendHostCore); |
330 }; | 331 }; |
331 | 332 |
332 } // namespace browser_sync | 333 } // namespace browser_sync |
333 | 334 |
334 #endif // COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_CORE_H_ | 335 #endif // COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_CORE_H_ |
OLD | NEW |