| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ | 5 #ifndef CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ |
| 6 #define CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ | 6 #define CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 const std::vector<syncer::ModelSafeWorker*>& workers, | 286 const std::vector<syncer::ModelSafeWorker*>& workers, |
| 287 syncer::ExtensionsActivityMonitor* extensions_activity_monitor, | 287 syncer::ExtensionsActivityMonitor* extensions_activity_monitor, |
| 288 const syncer::WeakHandle<syncer::JsEventHandler>& event_handler, | 288 const syncer::WeakHandle<syncer::JsEventHandler>& event_handler, |
| 289 const GURL& service_url, | 289 const GURL& service_url, |
| 290 MakeHttpBridgeFactoryFn make_http_bridge_factory_fn, | 290 MakeHttpBridgeFactoryFn make_http_bridge_factory_fn, |
| 291 const syncer::SyncCredentials& credentials, | 291 const syncer::SyncCredentials& credentials, |
| 292 ChromeSyncNotificationBridge* chrome_sync_notification_bridge, | 292 ChromeSyncNotificationBridge* chrome_sync_notification_bridge, |
| 293 syncer::SyncNotifierFactory* sync_notifier_factory, | 293 syncer::SyncNotifierFactory* sync_notifier_factory, |
| 294 bool delete_sync_data_folder, | 294 bool delete_sync_data_folder, |
| 295 const std::string& restored_key_for_bootstrapping, | 295 const std::string& restored_key_for_bootstrapping, |
| 296 syncer::SyncManager::TestingMode testing_mode, | 296 syncer::InternalComponentsFactory* internal_components_factory, |
| 297 syncer::UnrecoverableErrorHandler* unrecoverable_error_handler, | 297 syncer::UnrecoverableErrorHandler* unrecoverable_error_handler, |
| 298 syncer::ReportUnrecoverableErrorFunction | 298 syncer::ReportUnrecoverableErrorFunction |
| 299 report_unrecoverable_error_function); | 299 report_unrecoverable_error_function); |
| 300 ~DoInitializeOptions(); | 300 ~DoInitializeOptions(); |
| 301 | 301 |
| 302 MessageLoop* sync_loop; | 302 MessageLoop* sync_loop; |
| 303 SyncBackendRegistrar* registrar; | 303 SyncBackendRegistrar* registrar; |
| 304 syncer::ModelSafeRoutingInfo routing_info; | 304 syncer::ModelSafeRoutingInfo routing_info; |
| 305 std::vector<syncer::ModelSafeWorker*> workers; | 305 std::vector<syncer::ModelSafeWorker*> workers; |
| 306 syncer::ExtensionsActivityMonitor* extensions_activity_monitor; | 306 syncer::ExtensionsActivityMonitor* extensions_activity_monitor; |
| 307 syncer::WeakHandle<syncer::JsEventHandler> event_handler; | 307 syncer::WeakHandle<syncer::JsEventHandler> event_handler; |
| 308 GURL service_url; | 308 GURL service_url; |
| 309 // Overridden by tests. | 309 // Overridden by tests. |
| 310 MakeHttpBridgeFactoryFn make_http_bridge_factory_fn; | 310 MakeHttpBridgeFactoryFn make_http_bridge_factory_fn; |
| 311 syncer::SyncCredentials credentials; | 311 syncer::SyncCredentials credentials; |
| 312 ChromeSyncNotificationBridge* const chrome_sync_notification_bridge; | 312 ChromeSyncNotificationBridge* const chrome_sync_notification_bridge; |
| 313 syncer::SyncNotifierFactory* const sync_notifier_factory; | 313 syncer::SyncNotifierFactory* const sync_notifier_factory; |
| 314 std::string lsid; | 314 std::string lsid; |
| 315 bool delete_sync_data_folder; | 315 bool delete_sync_data_folder; |
| 316 std::string restored_key_for_bootstrapping; | 316 std::string restored_key_for_bootstrapping; |
| 317 syncer::SyncManager::TestingMode testing_mode; | 317 syncer::InternalComponentsFactory* internal_components_factory; |
| 318 syncer::UnrecoverableErrorHandler* unrecoverable_error_handler; | 318 syncer::UnrecoverableErrorHandler* unrecoverable_error_handler; |
| 319 syncer::ReportUnrecoverableErrorFunction | 319 syncer::ReportUnrecoverableErrorFunction |
| 320 report_unrecoverable_error_function; | 320 report_unrecoverable_error_function; |
| 321 }; | 321 }; |
| 322 | 322 |
| 323 // Allows tests to perform alternate core initialization work. | 323 // Allows tests to perform alternate core initialization work. |
| 324 virtual void InitCore(const DoInitializeOptions& options); | 324 virtual void InitCore(const DoInitializeOptions& options); |
| 325 | 325 |
| 326 // Request the syncer to reconfigure with the specfied params. | 326 // Request the syncer to reconfigure with the specfied params. |
| 327 // Virtual for testing. | 327 // Virtual for testing. |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 495 | 495 |
| 496 // UI-thread cache of the last SyncSessionSnapshot received from syncapi. | 496 // UI-thread cache of the last SyncSessionSnapshot received from syncapi. |
| 497 syncer::sessions::SyncSessionSnapshot last_snapshot_; | 497 syncer::sessions::SyncSessionSnapshot last_snapshot_; |
| 498 | 498 |
| 499 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost); | 499 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost); |
| 500 }; | 500 }; |
| 501 | 501 |
| 502 } // namespace browser_sync | 502 } // namespace browser_sync |
| 503 | 503 |
| 504 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ | 504 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ |
| OLD | NEW |