| 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_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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 const ModelSafeRoutingInfo& routing_info) OVERRIDE; | 99 const ModelSafeRoutingInfo& routing_info) OVERRIDE; |
| 100 virtual void ConfigureSyncer( | 100 virtual void ConfigureSyncer( |
| 101 ConfigureReason reason, | 101 ConfigureReason reason, |
| 102 const ModelTypeSet& types_to_config, | 102 const ModelTypeSet& types_to_config, |
| 103 const ModelSafeRoutingInfo& new_routing_info, | 103 const ModelSafeRoutingInfo& new_routing_info, |
| 104 const base::Closure& ready_task, | 104 const base::Closure& ready_task, |
| 105 const base::Closure& retry_task) OVERRIDE; | 105 const base::Closure& retry_task) OVERRIDE; |
| 106 virtual void AddObserver(SyncManager::Observer* observer) OVERRIDE; | 106 virtual void AddObserver(SyncManager::Observer* observer) OVERRIDE; |
| 107 virtual void RemoveObserver(SyncManager::Observer* observer) OVERRIDE; | 107 virtual void RemoveObserver(SyncManager::Observer* observer) OVERRIDE; |
| 108 virtual SyncStatus GetDetailedStatus() const OVERRIDE; | 108 virtual SyncStatus GetDetailedStatus() const OVERRIDE; |
| 109 virtual bool GetKeystoreKeyBootstrapToken(std::string* token) OVERRIDE; | |
| 110 virtual void SaveChanges() OVERRIDE; | 109 virtual void SaveChanges() OVERRIDE; |
| 111 virtual void StopSyncingForShutdown(const base::Closure& callback) OVERRIDE; | 110 virtual void StopSyncingForShutdown(const base::Closure& callback) OVERRIDE; |
| 112 virtual void ShutdownOnSyncThread() OVERRIDE; | 111 virtual void ShutdownOnSyncThread() OVERRIDE; |
| 113 virtual UserShare* GetUserShare() OVERRIDE; | 112 virtual UserShare* GetUserShare() OVERRIDE; |
| 114 virtual bool ReceivedExperiment(Experiments* experiments) OVERRIDE; | 113 virtual bool ReceivedExperiment(Experiments* experiments) OVERRIDE; |
| 115 virtual bool HasUnsyncedItems() OVERRIDE; | 114 virtual bool HasUnsyncedItems() OVERRIDE; |
| 116 virtual SyncEncryptionHandler* GetEncryptionHandler() OVERRIDE; | 115 virtual SyncEncryptionHandler* GetEncryptionHandler() OVERRIDE; |
| 117 | 116 |
| 118 // SyncEncryptionHandler::Observer implementation. | 117 // SyncEncryptionHandler::Observer implementation. |
| 119 virtual void OnPassphraseRequired( | 118 virtual void OnPassphraseRequired( |
| 120 PassphraseRequiredReason reason, | 119 PassphraseRequiredReason reason, |
| 121 const sync_pb::EncryptedData& pending_keys) OVERRIDE; | 120 const sync_pb::EncryptedData& pending_keys) OVERRIDE; |
| 122 virtual void OnPassphraseAccepted() OVERRIDE; | 121 virtual void OnPassphraseAccepted() OVERRIDE; |
| 123 virtual void OnBootstrapTokenUpdated( | 122 virtual void OnBootstrapTokenUpdated( |
| 124 const std::string& bootstrap_token) OVERRIDE; | 123 const std::string& bootstrap_token, |
| 124 BootstrapTokenType type) OVERRIDE; |
| 125 virtual void OnEncryptedTypesChanged( | 125 virtual void OnEncryptedTypesChanged( |
| 126 ModelTypeSet encrypted_types, | 126 ModelTypeSet encrypted_types, |
| 127 bool encrypt_everything) OVERRIDE; | 127 bool encrypt_everything) OVERRIDE; |
| 128 virtual void OnEncryptionComplete() OVERRIDE; | 128 virtual void OnEncryptionComplete() OVERRIDE; |
| 129 virtual void OnCryptographerStateChanged( | 129 virtual void OnCryptographerStateChanged( |
| 130 Cryptographer* cryptographer) OVERRIDE; | 130 Cryptographer* cryptographer) OVERRIDE; |
| 131 virtual void OnPassphraseStateChanged(PassphraseState state) OVERRIDE; | 131 virtual void OnPassphraseStateChanged(PassphraseState state) OVERRIDE; |
| 132 | 132 |
| 133 // Return the currently active (validated) username for use with syncable | 133 // Return the currently active (validated) username for use with syncable |
| 134 // types. | 134 // types. |
| (...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 382 // changing passphrases, and in general handles sync-specific interactions | 382 // changing passphrases, and in general handles sync-specific interactions |
| 383 // with the cryptographer. | 383 // with the cryptographer. |
| 384 scoped_ptr<SyncEncryptionHandlerImpl> sync_encryption_handler_; | 384 scoped_ptr<SyncEncryptionHandlerImpl> sync_encryption_handler_; |
| 385 | 385 |
| 386 DISALLOW_COPY_AND_ASSIGN(SyncManagerImpl); | 386 DISALLOW_COPY_AND_ASSIGN(SyncManagerImpl); |
| 387 }; | 387 }; |
| 388 | 388 |
| 389 } // namespace syncer | 389 } // namespace syncer |
| 390 | 390 |
| 391 #endif // SYNC_INTERNAL_API_SYNC_MANAGER_H_ | 391 #endif // SYNC_INTERNAL_API_SYNC_MANAGER_H_ |
| OLD | NEW |