Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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_MANAGER_IMPL_H_ | 5 #ifndef SYNC_INTERNAL_API_SYNC_MANAGER_IMPL_H_ |
| 6 #define SYNC_INTERNAL_API_SYNC_MANAGER_IMPL_H_ | 6 #define SYNC_INTERNAL_API_SYNC_MANAGER_IMPL_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 287 base::ObserverList<SyncManager::Observer> observers_; | 287 base::ObserverList<SyncManager::Observer> observers_; |
| 288 | 288 |
| 289 // The ServerConnectionManager used to abstract communication between the | 289 // The ServerConnectionManager used to abstract communication between the |
| 290 // client (the Syncer) and the sync server. | 290 // client (the Syncer) and the sync server. |
| 291 scoped_ptr<SyncAPIServerConnectionManager> connection_manager_; | 291 scoped_ptr<SyncAPIServerConnectionManager> connection_manager_; |
| 292 | 292 |
| 293 // Maintains state that affects the way we interact with different sync types. | 293 // Maintains state that affects the way we interact with different sync types. |
| 294 // This state changes when entering or exiting a configuration cycle. | 294 // This state changes when entering or exiting a configuration cycle. |
| 295 scoped_ptr<ModelTypeRegistry> model_type_registry_; | 295 scoped_ptr<ModelTypeRegistry> model_type_registry_; |
| 296 | 296 |
| 297 // The main interface for non-blocking sync types and a thread-safe wrapper. | 297 // Thread-safe wrapper for main interface for non-blocking sync types. |
| 298 scoped_ptr<syncer_v2::SyncContext> sync_context_; | |
|
maxbogue
2016/04/01 22:43:14
Good catch!
pavely
2016/04/04 17:57:16
Acknowledged.
| |
| 299 scoped_ptr<syncer_v2::SyncContextProxy> sync_context_proxy_; | 298 scoped_ptr<syncer_v2::SyncContextProxy> sync_context_proxy_; |
| 300 | 299 |
| 301 // A container of various bits of information used by the SyncScheduler to | 300 // A container of various bits of information used by the SyncScheduler to |
| 302 // create SyncSessions. Must outlive the SyncScheduler. | 301 // create SyncSessions. Must outlive the SyncScheduler. |
| 303 scoped_ptr<sessions::SyncSessionContext> session_context_; | 302 scoped_ptr<sessions::SyncSessionContext> session_context_; |
| 304 | 303 |
| 305 // The scheduler that runs the Syncer. Needs to be explicitly | 304 // The scheduler that runs the Syncer. Needs to be explicitly |
| 306 // Start()ed. | 305 // Start()ed. |
| 307 scoped_ptr<SyncScheduler> scheduler_; | 306 scoped_ptr<SyncScheduler> scheduler_; |
| 308 | 307 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 348 scoped_ptr<SyncEncryptionHandlerImpl> sync_encryption_handler_; | 347 scoped_ptr<SyncEncryptionHandlerImpl> sync_encryption_handler_; |
| 349 | 348 |
| 350 base::WeakPtrFactory<SyncManagerImpl> weak_ptr_factory_; | 349 base::WeakPtrFactory<SyncManagerImpl> weak_ptr_factory_; |
| 351 | 350 |
| 352 DISALLOW_COPY_AND_ASSIGN(SyncManagerImpl); | 351 DISALLOW_COPY_AND_ASSIGN(SyncManagerImpl); |
| 353 }; | 352 }; |
| 354 | 353 |
| 355 } // namespace syncer | 354 } // namespace syncer |
| 356 | 355 |
| 357 #endif // SYNC_INTERNAL_API_SYNC_MANAGER_IMPL_H_ | 356 #endif // SYNC_INTERNAL_API_SYNC_MANAGER_IMPL_H_ |
| OLD | NEW |