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 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
283 base::MessageLoop* sync_loop_; | 283 base::MessageLoop* sync_loop_; |
284 | 284 |
285 // Our parent's registrar (not owned). Non-NULL only between | 285 // Our parent's registrar (not owned). Non-NULL only between |
286 // calls to DoInitialize() and DoShutdown(). | 286 // calls to DoInitialize() and DoShutdown(). |
287 SyncBackendRegistrar* registrar_; | 287 SyncBackendRegistrar* registrar_; |
288 | 288 |
289 // The timer used to periodically call SaveChanges. | 289 // The timer used to periodically call SaveChanges. |
290 scoped_ptr<base::RepeatingTimer<SyncBackendHostCore> > save_changes_timer_; | 290 scoped_ptr<base::RepeatingTimer<SyncBackendHostCore> > save_changes_timer_; |
291 | 291 |
292 // Our encryptor, which uses Chrome's encryption functions. | 292 // Our encryptor, which uses Chrome's encryption functions. |
293 SystemEncryptor encryptor_; | 293 sync_driver::SystemEncryptor encryptor_; |
294 | 294 |
295 // A special ChangeProcessor that tracks the DEVICE_INFO type for us. | 295 // A special ChangeProcessor that tracks the DEVICE_INFO type for us. |
296 scoped_ptr<SyncedDeviceTracker> synced_device_tracker_; | 296 scoped_ptr<SyncedDeviceTracker> synced_device_tracker_; |
297 | 297 |
298 // The top-level syncapi entry point. Lives on the sync thread. | 298 // The top-level syncapi entry point. Lives on the sync thread. |
299 scoped_ptr<syncer::SyncManager> sync_manager_; | 299 scoped_ptr<syncer::SyncManager> sync_manager_; |
300 | 300 |
301 // Temporary holder of sync manager's initialization results. Set by | 301 // Temporary holder of sync manager's initialization results. Set by |
302 // OnInitializeComplete, and consumed when we pass it via OnBackendInitialized | 302 // OnInitializeComplete, and consumed when we pass it via OnBackendInitialized |
303 // in the final state of HandleInitializationSuccessOnFrontendLoop. | 303 // in the final state of HandleInitializationSuccessOnFrontendLoop. |
(...skipping 23 matching lines...) Expand all Loading... |
327 std::string signin_scoped_device_id_; | 327 std::string signin_scoped_device_id_; |
328 | 328 |
329 base::WeakPtrFactory<SyncBackendHostCore> weak_ptr_factory_; | 329 base::WeakPtrFactory<SyncBackendHostCore> weak_ptr_factory_; |
330 | 330 |
331 DISALLOW_COPY_AND_ASSIGN(SyncBackendHostCore); | 331 DISALLOW_COPY_AND_ASSIGN(SyncBackendHostCore); |
332 }; | 332 }; |
333 | 333 |
334 } // namespace browser_sync | 334 } // namespace browser_sync |
335 | 335 |
336 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_CORE_H_ | 336 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_CORE_H_ |
OLD | NEW |