| 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 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 334 // Virtual for testing. | 334 // Virtual for testing. |
| 335 virtual void RequestConfigureSyncer( | 335 virtual void RequestConfigureSyncer( |
| 336 syncer::ConfigureReason reason, | 336 syncer::ConfigureReason reason, |
| 337 syncer::ModelTypeSet types_to_config, | 337 syncer::ModelTypeSet types_to_config, |
| 338 const syncer::ModelSafeRoutingInfo& routing_info, | 338 const syncer::ModelSafeRoutingInfo& routing_info, |
| 339 const base::Callback<void(syncer::ModelTypeSet)>& ready_task, | 339 const base::Callback<void(syncer::ModelTypeSet)>& ready_task, |
| 340 const base::Closure& retry_callback); | 340 const base::Closure& retry_callback); |
| 341 | 341 |
| 342 // Called when the syncer has finished performing a configuration. | 342 // Called when the syncer has finished performing a configuration. |
| 343 void FinishConfigureDataTypesOnFrontendLoop( | 343 void FinishConfigureDataTypesOnFrontendLoop( |
| 344 const syncer::ModelTypeSet types_to_configure, | 344 const syncer::ModelTypeSet failed_configuration_types, |
| 345 const syncer::ModelTypeSet configured_types, | |
| 346 const base::Callback<void(syncer::ModelTypeSet)>& ready_task); | 345 const base::Callback<void(syncer::ModelTypeSet)>& ready_task); |
| 347 | 346 |
| 348 private: | 347 private: |
| 349 // The real guts of SyncBackendHost, to keep the public client API clean. | 348 // The real guts of SyncBackendHost, to keep the public client API clean. |
| 350 class Core; | 349 class Core; |
| 351 | 350 |
| 352 // An enum representing the steps to initializing the SyncBackendHost. | 351 // An enum representing the steps to initializing the SyncBackendHost. |
| 353 enum InitializationState { | 352 enum InitializationState { |
| 354 NOT_ATTEMPTED, | 353 NOT_ATTEMPTED, |
| 355 CREATING_SYNC_MANAGER, // We're waiting for the first callback from the | 354 CREATING_SYNC_MANAGER, // We're waiting for the first callback from the |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 502 | 501 |
| 503 // UI-thread cache of the last SyncSessionSnapshot received from syncapi. | 502 // UI-thread cache of the last SyncSessionSnapshot received from syncapi. |
| 504 syncer::sessions::SyncSessionSnapshot last_snapshot_; | 503 syncer::sessions::SyncSessionSnapshot last_snapshot_; |
| 505 | 504 |
| 506 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost); | 505 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost); |
| 507 }; | 506 }; |
| 508 | 507 |
| 509 } // namespace browser_sync | 508 } // namespace browser_sync |
| 510 | 509 |
| 511 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ | 510 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ |
| OLD | NEW |