| 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 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 284 // The timer used to periodically call SaveChanges. | 284 // The timer used to periodically call SaveChanges. |
| 285 std::unique_ptr<base::RepeatingTimer> save_changes_timer_; | 285 std::unique_ptr<base::RepeatingTimer> save_changes_timer_; |
| 286 | 286 |
| 287 // Our encryptor, which uses Chrome's encryption functions. | 287 // Our encryptor, which uses Chrome's encryption functions. |
| 288 SystemEncryptor encryptor_; | 288 SystemEncryptor encryptor_; |
| 289 | 289 |
| 290 // The top-level syncapi entry point. Lives on the sync thread. | 290 // The top-level syncapi entry point. Lives on the sync thread. |
| 291 std::unique_ptr<SyncManager> sync_manager_; | 291 std::unique_ptr<SyncManager> sync_manager_; |
| 292 | 292 |
| 293 // Temporary holder of sync manager's initialization results. Set by | 293 // Temporary holder of sync manager's initialization results. Set by |
| 294 // OnInitializeComplete, and consumed when we pass it via OnBackendInitialized | 294 // OnInitializeComplete, and consumed when we pass it via OnEngineInitialized |
| 295 // in the final state of HandleInitializationSuccessOnFrontendLoop. | 295 // in the final state of HandleInitializationSuccessOnFrontendLoop. |
| 296 WeakHandle<JsBackend> js_backend_; | 296 WeakHandle<JsBackend> js_backend_; |
| 297 WeakHandle<DataTypeDebugInfoListener> debug_info_listener_; | 297 WeakHandle<DataTypeDebugInfoListener> debug_info_listener_; |
| 298 | 298 |
| 299 // These signals allow us to send requests to shut down the HttpBridgeFactory | 299 // These signals allow us to send requests to shut down the HttpBridgeFactory |
| 300 // and ServerConnectionManager without having to wait for those classes to | 300 // and ServerConnectionManager without having to wait for those classes to |
| 301 // finish initializing first. | 301 // finish initializing first. |
| 302 // | 302 // |
| 303 // See comments in SyncBackendHostCore::ShutdownOnUIThread() for more details. | 303 // See comments in SyncBackendHostCore::ShutdownOnUIThread() for more details. |
| 304 CancelationSignal release_request_context_signal_; | 304 CancelationSignal release_request_context_signal_; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 320 base::ThreadChecker thread_checker_; | 320 base::ThreadChecker thread_checker_; |
| 321 | 321 |
| 322 base::WeakPtrFactory<SyncBackendHostCore> weak_ptr_factory_; | 322 base::WeakPtrFactory<SyncBackendHostCore> weak_ptr_factory_; |
| 323 | 323 |
| 324 DISALLOW_COPY_AND_ASSIGN(SyncBackendHostCore); | 324 DISALLOW_COPY_AND_ASSIGN(SyncBackendHostCore); |
| 325 }; | 325 }; |
| 326 | 326 |
| 327 } // namespace syncer | 327 } // namespace syncer |
| 328 | 328 |
| 329 #endif // COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_CORE_H_ | 329 #endif // COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_CORE_H_ |
| OLD | NEW |