| 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 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 361 }; | 361 }; |
| 362 | 362 |
| 363 // Allows tests to perform alternate core initialization work. | 363 // Allows tests to perform alternate core initialization work. |
| 364 virtual void InitCore(const DoInitializeOptions& options); | 364 virtual void InitCore(const DoInitializeOptions& options); |
| 365 | 365 |
| 366 // Request the syncer to reconfigure with the specfied params. | 366 // Request the syncer to reconfigure with the specfied params. |
| 367 // Virtual for testing. | 367 // Virtual for testing. |
| 368 virtual void RequestConfigureSyncer( | 368 virtual void RequestConfigureSyncer( |
| 369 syncer::ConfigureReason reason, | 369 syncer::ConfigureReason reason, |
| 370 syncer::ModelTypeSet to_download, | 370 syncer::ModelTypeSet to_download, |
| 371 syncer::ModelTypeSet to_purge, |
| 371 syncer::ModelTypeSet to_journal, | 372 syncer::ModelTypeSet to_journal, |
| 372 syncer::ModelTypeSet to_unapply, | 373 syncer::ModelTypeSet to_unapply, |
| 373 syncer::ModelTypeSet to_ignore, | 374 syncer::ModelTypeSet to_ignore, |
| 374 const syncer::ModelSafeRoutingInfo& routing_info, | 375 const syncer::ModelSafeRoutingInfo& routing_info, |
| 375 const base::Callback<void(syncer::ModelTypeSet, | 376 const base::Callback<void(syncer::ModelTypeSet, |
| 376 syncer::ModelTypeSet)>& ready_task, | 377 syncer::ModelTypeSet)>& ready_task, |
| 377 const base::Closure& retry_callback); | 378 const base::Closure& retry_callback); |
| 378 | 379 |
| 379 // Called when the syncer has finished performing a configuration. | 380 // Called when the syncer has finished performing a configuration. |
| 380 void FinishConfigureDataTypesOnFrontendLoop( | 381 void FinishConfigureDataTypesOnFrontendLoop( |
| (...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 577 // HandleInitializationCompletedOnFrontendLoop. | 578 // HandleInitializationCompletedOnFrontendLoop. |
| 578 syncer::WeakHandle<syncer::JsBackend> js_backend_; | 579 syncer::WeakHandle<syncer::JsBackend> js_backend_; |
| 579 syncer::WeakHandle<syncer::DataTypeDebugInfoListener> debug_info_listener_; | 580 syncer::WeakHandle<syncer::DataTypeDebugInfoListener> debug_info_listener_; |
| 580 | 581 |
| 581 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost); | 582 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost); |
| 582 }; | 583 }; |
| 583 | 584 |
| 584 } // namespace browser_sync | 585 } // namespace browser_sync |
| 585 | 586 |
| 586 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ | 587 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ |
| OLD | NEW |