| 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 SYNC_INTERNAL_API_PUBLIC_SYNC_MANAGER_H_ | 5 #ifndef SYNC_INTERNAL_API_PUBLIC_SYNC_MANAGER_H_ |
| 6 #define SYNC_INTERNAL_API_PUBLIC_SYNC_MANAGER_H_ | 6 #define SYNC_INTERNAL_API_PUBLIC_SYNC_MANAGER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 371 bool use_ssl, | 371 bool use_ssl, |
| 372 const scoped_refptr<base::TaskRunner>& blocking_task_runner, | 372 const scoped_refptr<base::TaskRunner>& blocking_task_runner, |
| 373 scoped_ptr<HttpPostProviderFactory> post_factory, | 373 scoped_ptr<HttpPostProviderFactory> post_factory, |
| 374 const std::vector<ModelSafeWorker*>& workers, | 374 const std::vector<ModelSafeWorker*>& workers, |
| 375 ExtensionsActivityMonitor* extensions_activity_monitor, | 375 ExtensionsActivityMonitor* extensions_activity_monitor, |
| 376 ChangeDelegate* change_delegate, | 376 ChangeDelegate* change_delegate, |
| 377 const SyncCredentials& credentials, | 377 const SyncCredentials& credentials, |
| 378 scoped_ptr<SyncNotifier> sync_notifier, | 378 scoped_ptr<SyncNotifier> sync_notifier, |
| 379 const std::string& restored_key_for_bootstrapping, | 379 const std::string& restored_key_for_bootstrapping, |
| 380 const std::string& restored_keystore_key_for_bootstrapping, | 380 const std::string& restored_keystore_key_for_bootstrapping, |
| 381 bool keystore_encryption_enabled, | |
| 382 scoped_ptr<InternalComponentsFactory> internal_components_factory, | 381 scoped_ptr<InternalComponentsFactory> internal_components_factory, |
| 383 Encryptor* encryptor, | 382 Encryptor* encryptor, |
| 384 UnrecoverableErrorHandler* unrecoverable_error_handler, | 383 UnrecoverableErrorHandler* unrecoverable_error_handler, |
| 385 ReportUnrecoverableErrorFunction report_unrecoverable_error_function) = 0; | 384 ReportUnrecoverableErrorFunction report_unrecoverable_error_function) = 0; |
| 386 | 385 |
| 387 // Throw an unrecoverable error from a transaction (mostly used for | 386 // Throw an unrecoverable error from a transaction (mostly used for |
| 388 // testing). | 387 // testing). |
| 389 virtual void ThrowUnrecoverableError() = 0; | 388 virtual void ThrowUnrecoverableError() = 0; |
| 390 | 389 |
| 391 virtual ModelTypeSet InitialSyncEndedTypes() = 0; | 390 virtual ModelTypeSet InitialSyncEndedTypes() = 0; |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 529 virtual bool ReceivedExperiment(Experiments* experiments) = 0; | 528 virtual bool ReceivedExperiment(Experiments* experiments) = 0; |
| 530 | 529 |
| 531 // Uses a read-only transaction to determine if the directory being synced has | 530 // Uses a read-only transaction to determine if the directory being synced has |
| 532 // any remaining unsynced items. May be called on any thread. | 531 // any remaining unsynced items. May be called on any thread. |
| 533 virtual bool HasUnsyncedItems() = 0; | 532 virtual bool HasUnsyncedItems() = 0; |
| 534 }; | 533 }; |
| 535 | 534 |
| 536 } // namespace syncer | 535 } // namespace syncer |
| 537 | 536 |
| 538 #endif // SYNC_INTERNAL_API_PUBLIC_SYNC_MANAGER_H_ | 537 #endif // SYNC_INTERNAL_API_PUBLIC_SYNC_MANAGER_H_ |
| OLD | NEW |