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_IMPL_H_ | 5 #ifndef COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_IMPL_H_ |
6 #define COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_IMPL_H_ | 6 #define COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_IMPL_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 // explicitly requested that we start forwarding these events. | 211 // explicitly requested that we start forwarding these events. |
212 void HandleDirectoryUpdateCountersUpdatedOnFrontendLoop( | 212 void HandleDirectoryUpdateCountersUpdatedOnFrontendLoop( |
213 syncer::ModelType type, | 213 syncer::ModelType type, |
214 const syncer::UpdateCounters& counters); | 214 const syncer::UpdateCounters& counters); |
215 | 215 |
216 // Forwards a directory status counter update to the frontend loop. Will not | 216 // Forwards a directory status counter update to the frontend loop. Will not |
217 // be called unless a call to EnableDirectoryTypeDebugInfoForwarding() | 217 // be called unless a call to EnableDirectoryTypeDebugInfoForwarding() |
218 // explicitly requested that we start forwarding these events. | 218 // explicitly requested that we start forwarding these events. |
219 void HandleDirectoryStatusCountersUpdatedOnFrontendLoop( | 219 void HandleDirectoryStatusCountersUpdatedOnFrontendLoop( |
220 syncer::ModelType type, | 220 syncer::ModelType type, |
221 const syncer::StatusCounters& counters); | 221 std::unique_ptr<syncer::StatusCounters> counters); |
222 | 222 |
223 // Overwrites the kSyncInvalidationVersions preference with the most recent | 223 // Overwrites the kSyncInvalidationVersions preference with the most recent |
224 // set of invalidation versions for each type. | 224 // set of invalidation versions for each type. |
225 void UpdateInvalidationVersions( | 225 void UpdateInvalidationVersions( |
226 const std::map<syncer::ModelType, int64_t>& invalidation_versions); | 226 const std::map<syncer::ModelType, int64_t>& invalidation_versions); |
227 | 227 |
228 sync_driver::SyncFrontend* frontend() { return frontend_; } | 228 sync_driver::SyncFrontend* frontend() { return frontend_; } |
229 | 229 |
230 private: | 230 private: |
231 friend class SyncBackendHostCore; | 231 friend class SyncBackendHostCore; |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
369 bool invalidation_handler_registered_; | 369 bool invalidation_handler_registered_; |
370 | 370 |
371 base::WeakPtrFactory<SyncBackendHostImpl> weak_ptr_factory_; | 371 base::WeakPtrFactory<SyncBackendHostImpl> weak_ptr_factory_; |
372 | 372 |
373 DISALLOW_COPY_AND_ASSIGN(SyncBackendHostImpl); | 373 DISALLOW_COPY_AND_ASSIGN(SyncBackendHostImpl); |
374 }; | 374 }; |
375 | 375 |
376 } // namespace browser_sync | 376 } // namespace browser_sync |
377 | 377 |
378 #endif // COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_IMPL_H_ | 378 #endif // COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_IMPL_H_ |
OLD | NEW |