| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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_SYNC_MANAGER_H_ | 5 #ifndef SYNC_INTERNAL_API_SYNC_MANAGER_H_ |
| 6 #define SYNC_INTERNAL_API_SYNC_MANAGER_H_ | 6 #define SYNC_INTERNAL_API_SYNC_MANAGER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 SyncManager::ChangeDelegate* change_delegate, | 74 SyncManager::ChangeDelegate* change_delegate, |
| 75 const SyncCredentials& credentials, | 75 const SyncCredentials& credentials, |
| 76 const std::string& invalidator_client_id, | 76 const std::string& invalidator_client_id, |
| 77 const std::string& restored_key_for_bootstrapping, | 77 const std::string& restored_key_for_bootstrapping, |
| 78 const std::string& restored_keystore_key_for_bootstrapping, | 78 const std::string& restored_keystore_key_for_bootstrapping, |
| 79 InternalComponentsFactory* internal_components_factory, | 79 InternalComponentsFactory* internal_components_factory, |
| 80 Encryptor* encryptor, | 80 Encryptor* encryptor, |
| 81 scoped_ptr<UnrecoverableErrorHandler> unrecoverable_error_handler, | 81 scoped_ptr<UnrecoverableErrorHandler> unrecoverable_error_handler, |
| 82 ReportUnrecoverableErrorFunction | 82 ReportUnrecoverableErrorFunction |
| 83 report_unrecoverable_error_function, | 83 report_unrecoverable_error_function, |
| 84 bool use_oauth2_token) OVERRIDE; | 84 bool use_oauth2_token, |
| 85 CancelationSignal* cancelation_signal) OVERRIDE; |
| 85 virtual void ThrowUnrecoverableError() OVERRIDE; | 86 virtual void ThrowUnrecoverableError() OVERRIDE; |
| 86 virtual ModelTypeSet InitialSyncEndedTypes() OVERRIDE; | 87 virtual ModelTypeSet InitialSyncEndedTypes() OVERRIDE; |
| 87 virtual ModelTypeSet GetTypesWithEmptyProgressMarkerToken( | 88 virtual ModelTypeSet GetTypesWithEmptyProgressMarkerToken( |
| 88 ModelTypeSet types) OVERRIDE; | 89 ModelTypeSet types) OVERRIDE; |
| 89 virtual bool PurgePartiallySyncedTypes() OVERRIDE; | 90 virtual bool PurgePartiallySyncedTypes() OVERRIDE; |
| 90 virtual void UpdateCredentials(const SyncCredentials& credentials) OVERRIDE; | 91 virtual void UpdateCredentials(const SyncCredentials& credentials) OVERRIDE; |
| 91 virtual void StartSyncingNormally( | 92 virtual void StartSyncingNormally( |
| 92 const ModelSafeRoutingInfo& routing_info) OVERRIDE; | 93 const ModelSafeRoutingInfo& routing_info) OVERRIDE; |
| 93 virtual void ConfigureSyncer( | 94 virtual void ConfigureSyncer( |
| 94 ConfigureReason reason, | 95 ConfigureReason reason, |
| 95 ModelTypeSet to_download, | 96 ModelTypeSet to_download, |
| 96 ModelTypeSet to_purge, | 97 ModelTypeSet to_purge, |
| 97 ModelTypeSet to_journal, | 98 ModelTypeSet to_journal, |
| 98 ModelTypeSet to_unapply, | 99 ModelTypeSet to_unapply, |
| 99 const ModelSafeRoutingInfo& new_routing_info, | 100 const ModelSafeRoutingInfo& new_routing_info, |
| 100 const base::Closure& ready_task, | 101 const base::Closure& ready_task, |
| 101 const base::Closure& retry_task) OVERRIDE; | 102 const base::Closure& retry_task) OVERRIDE; |
| 102 virtual void OnInvalidatorStateChange(InvalidatorState state) OVERRIDE; | 103 virtual void OnInvalidatorStateChange(InvalidatorState state) OVERRIDE; |
| 103 virtual void OnIncomingInvalidation( | 104 virtual void OnIncomingInvalidation( |
| 104 const ObjectIdInvalidationMap& invalidation_map) OVERRIDE; | 105 const ObjectIdInvalidationMap& invalidation_map) OVERRIDE; |
| 105 virtual void AddObserver(SyncManager::Observer* observer) OVERRIDE; | 106 virtual void AddObserver(SyncManager::Observer* observer) OVERRIDE; |
| 106 virtual void RemoveObserver(SyncManager::Observer* observer) OVERRIDE; | 107 virtual void RemoveObserver(SyncManager::Observer* observer) OVERRIDE; |
| 107 virtual SyncStatus GetDetailedStatus() const OVERRIDE; | 108 virtual SyncStatus GetDetailedStatus() const OVERRIDE; |
| 108 virtual void SaveChanges() OVERRIDE; | 109 virtual void SaveChanges() OVERRIDE; |
| 109 virtual void StopSyncingForShutdown() OVERRIDE; | |
| 110 virtual void ShutdownOnSyncThread() OVERRIDE; | 110 virtual void ShutdownOnSyncThread() OVERRIDE; |
| 111 virtual UserShare* GetUserShare() OVERRIDE; | 111 virtual UserShare* GetUserShare() OVERRIDE; |
| 112 virtual const std::string cache_guid() OVERRIDE; | 112 virtual const std::string cache_guid() OVERRIDE; |
| 113 virtual bool ReceivedExperiment(Experiments* experiments) OVERRIDE; | 113 virtual bool ReceivedExperiment(Experiments* experiments) OVERRIDE; |
| 114 virtual bool HasUnsyncedItems() OVERRIDE; | 114 virtual bool HasUnsyncedItems() OVERRIDE; |
| 115 virtual SyncEncryptionHandler* GetEncryptionHandler() OVERRIDE; | 115 virtual SyncEncryptionHandler* GetEncryptionHandler() OVERRIDE; |
| 116 | 116 |
| 117 // SyncEncryptionHandler::Observer implementation. | 117 // SyncEncryptionHandler::Observer implementation. |
| 118 virtual void OnPassphraseRequired( | 118 virtual void OnPassphraseRequired( |
| 119 PassphraseRequiredReason reason, | 119 PassphraseRequiredReason reason, |
| (...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 366 // changing passphrases, and in general handles sync-specific interactions | 366 // changing passphrases, and in general handles sync-specific interactions |
| 367 // with the cryptographer. | 367 // with the cryptographer. |
| 368 scoped_ptr<SyncEncryptionHandlerImpl> sync_encryption_handler_; | 368 scoped_ptr<SyncEncryptionHandlerImpl> sync_encryption_handler_; |
| 369 | 369 |
| 370 DISALLOW_COPY_AND_ASSIGN(SyncManagerImpl); | 370 DISALLOW_COPY_AND_ASSIGN(SyncManagerImpl); |
| 371 }; | 371 }; |
| 372 | 372 |
| 373 } // namespace syncer | 373 } // namespace syncer |
| 374 | 374 |
| 375 #endif // SYNC_INTERNAL_API_SYNC_MANAGER_H_ | 375 #endif // SYNC_INTERNAL_API_SYNC_MANAGER_H_ |
| OLD | NEW |