| 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 CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_CORE_H_ | 5 #ifndef CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_CORE_H_ |
| 6 #define CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_CORE_H_ | 6 #define CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_CORE_H_ |
| 7 | 7 |
| 8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 | 9 |
| 10 #include "base/timer/timer.h" | 10 #include "base/timer/timer.h" |
| (...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 277 | 277 |
| 278 // The loop where all the sync backend operations happen. | 278 // The loop where all the sync backend operations happen. |
| 279 // Non-NULL only between calls to DoInitialize() and ~Core(). | 279 // Non-NULL only between calls to DoInitialize() and ~Core(). |
| 280 base::MessageLoop* sync_loop_; | 280 base::MessageLoop* sync_loop_; |
| 281 | 281 |
| 282 // Our parent's registrar (not owned). Non-NULL only between | 282 // Our parent's registrar (not owned). Non-NULL only between |
| 283 // calls to DoInitialize() and DoShutdown(). | 283 // calls to DoInitialize() and DoShutdown(). |
| 284 SyncBackendRegistrar* registrar_; | 284 SyncBackendRegistrar* registrar_; |
| 285 | 285 |
| 286 // The timer used to periodically call SaveChanges. | 286 // The timer used to periodically call SaveChanges. |
| 287 scoped_ptr<base::RepeatingTimer<SyncBackendHostCore> > save_changes_timer_; | 287 scoped_ptr<base::RepeatingTimer> save_changes_timer_; |
| 288 | 288 |
| 289 // Our encryptor, which uses Chrome's encryption functions. | 289 // Our encryptor, which uses Chrome's encryption functions. |
| 290 sync_driver::SystemEncryptor encryptor_; | 290 sync_driver::SystemEncryptor encryptor_; |
| 291 | 291 |
| 292 // The top-level syncapi entry point. Lives on the sync thread. | 292 // The top-level syncapi entry point. Lives on the sync thread. |
| 293 scoped_ptr<syncer::SyncManager> sync_manager_; | 293 scoped_ptr<syncer::SyncManager> sync_manager_; |
| 294 | 294 |
| 295 // Temporary holder of sync manager's initialization results. Set by | 295 // Temporary holder of sync manager's initialization results. Set by |
| 296 // OnInitializeComplete, and consumed when we pass it via OnBackendInitialized | 296 // OnInitializeComplete, and consumed when we pass it via OnBackendInitialized |
| 297 // in the final state of HandleInitializationSuccessOnFrontendLoop. | 297 // in the final state of HandleInitializationSuccessOnFrontendLoop. |
| (...skipping 25 matching lines...) Expand all Loading... |
| 323 std::map<syncer::ModelType, int64> last_invalidation_versions_; | 323 std::map<syncer::ModelType, int64> last_invalidation_versions_; |
| 324 | 324 |
| 325 base::WeakPtrFactory<SyncBackendHostCore> weak_ptr_factory_; | 325 base::WeakPtrFactory<SyncBackendHostCore> weak_ptr_factory_; |
| 326 | 326 |
| 327 DISALLOW_COPY_AND_ASSIGN(SyncBackendHostCore); | 327 DISALLOW_COPY_AND_ASSIGN(SyncBackendHostCore); |
| 328 }; | 328 }; |
| 329 | 329 |
| 330 } // namespace browser_sync | 330 } // namespace browser_sync |
| 331 | 331 |
| 332 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_CORE_H_ | 332 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_CORE_H_ |
| OLD | NEW |