| 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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 const sync_pb::EncryptedData& pending_keys) override; | 116 const sync_pb::EncryptedData& pending_keys) override; |
| 117 void OnPassphraseAccepted() override; | 117 void OnPassphraseAccepted() override; |
| 118 void OnBootstrapTokenUpdated(const std::string& bootstrap_token, | 118 void OnBootstrapTokenUpdated(const std::string& bootstrap_token, |
| 119 BootstrapTokenType type) override; | 119 BootstrapTokenType type) override; |
| 120 void OnEncryptedTypesChanged(ModelTypeSet encrypted_types, | 120 void OnEncryptedTypesChanged(ModelTypeSet encrypted_types, |
| 121 bool encrypt_everything) override; | 121 bool encrypt_everything) override; |
| 122 void OnEncryptionComplete() override; | 122 void OnEncryptionComplete() override; |
| 123 void OnCryptographerStateChanged(Cryptographer* cryptographer) override; | 123 void OnCryptographerStateChanged(Cryptographer* cryptographer) override; |
| 124 void OnPassphraseTypeChanged(PassphraseType type, | 124 void OnPassphraseTypeChanged(PassphraseType type, |
| 125 base::Time explicit_passphrase_time) override; | 125 base::Time explicit_passphrase_time) override; |
| 126 void OnLocalSetCustomPassphrase( |
| 127 const SyncEncryptionHandler::NigoriState& nigori_state) override; |
| 126 | 128 |
| 127 // SyncEngineEventListener implementation. | 129 // SyncEngineEventListener implementation. |
| 128 void OnSyncCycleEvent(const SyncCycleEvent& event) override; | 130 void OnSyncCycleEvent(const SyncCycleEvent& event) override; |
| 129 void OnActionableError(const SyncProtocolError& error) override; | 131 void OnActionableError(const SyncProtocolError& error) override; |
| 130 void OnRetryTimeChanged(base::Time retry_time) override; | 132 void OnRetryTimeChanged(base::Time retry_time) override; |
| 131 void OnThrottledTypesChanged(ModelTypeSet throttled_types) override; | 133 void OnThrottledTypesChanged(ModelTypeSet throttled_types) override; |
| 132 void OnMigrationRequested(ModelTypeSet types) override; | 134 void OnMigrationRequested(ModelTypeSet types) override; |
| 133 void OnProtocolEvent(const ProtocolEvent& event) override; | 135 void OnProtocolEvent(const ProtocolEvent& event) override; |
| 134 | 136 |
| 135 // ServerConnectionEventListener implementation. | 137 // ServerConnectionEventListener implementation. |
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 338 scoped_ptr<SyncEncryptionHandlerImpl> sync_encryption_handler_; | 340 scoped_ptr<SyncEncryptionHandlerImpl> sync_encryption_handler_; |
| 339 | 341 |
| 340 base::WeakPtrFactory<SyncManagerImpl> weak_ptr_factory_; | 342 base::WeakPtrFactory<SyncManagerImpl> weak_ptr_factory_; |
| 341 | 343 |
| 342 DISALLOW_COPY_AND_ASSIGN(SyncManagerImpl); | 344 DISALLOW_COPY_AND_ASSIGN(SyncManagerImpl); |
| 343 }; | 345 }; |
| 344 | 346 |
| 345 } // namespace syncer | 347 } // namespace syncer |
| 346 | 348 |
| 347 #endif // SYNC_INTERNAL_API_SYNC_MANAGER_H_ | 349 #endif // SYNC_INTERNAL_API_SYNC_MANAGER_H_ |
| OLD | NEW |