| 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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 virtual void OnEncryptedTypesChanged( | 123 virtual void OnEncryptedTypesChanged( |
| 124 ModelTypeSet encrypted_types, | 124 ModelTypeSet encrypted_types, |
| 125 bool encrypt_everything) OVERRIDE; | 125 bool encrypt_everything) OVERRIDE; |
| 126 virtual void OnEncryptionComplete() OVERRIDE; | 126 virtual void OnEncryptionComplete() OVERRIDE; |
| 127 virtual void OnCryptographerStateChanged( | 127 virtual void OnCryptographerStateChanged( |
| 128 Cryptographer* cryptographer) OVERRIDE; | 128 Cryptographer* cryptographer) OVERRIDE; |
| 129 virtual void OnPassphraseTypeChanged( | 129 virtual void OnPassphraseTypeChanged( |
| 130 PassphraseType type, | 130 PassphraseType type, |
| 131 base::Time explicit_passphrase_time) OVERRIDE; | 131 base::Time explicit_passphrase_time) OVERRIDE; |
| 132 | 132 |
| 133 static int GetDefaultNudgeDelay(); | |
| 134 static int GetSlowNudgeDelay(); | |
| 135 | |
| 136 // SyncEngineEventListener implementation. | 133 // SyncEngineEventListener implementation. |
| 137 virtual void OnSyncCycleEvent(const SyncCycleEvent& event) OVERRIDE; | 134 virtual void OnSyncCycleEvent(const SyncCycleEvent& event) OVERRIDE; |
| 138 virtual void OnActionableError(const SyncProtocolError& error) OVERRIDE; | 135 virtual void OnActionableError(const SyncProtocolError& error) OVERRIDE; |
| 139 virtual void OnRetryTimeChanged(base::Time retry_time) OVERRIDE; | 136 virtual void OnRetryTimeChanged(base::Time retry_time) OVERRIDE; |
| 140 virtual void OnThrottledTypesChanged(ModelTypeSet throttled_types) OVERRIDE; | 137 virtual void OnThrottledTypesChanged(ModelTypeSet throttled_types) OVERRIDE; |
| 141 virtual void OnMigrationRequested(ModelTypeSet types) OVERRIDE; | 138 virtual void OnMigrationRequested(ModelTypeSet types) OVERRIDE; |
| 142 virtual void OnProtocolEvent(const ProtocolEvent& event) OVERRIDE; | 139 virtual void OnProtocolEvent(const ProtocolEvent& event) OVERRIDE; |
| 143 | 140 |
| 144 // ServerConnectionEventListener implementation. | 141 // ServerConnectionEventListener implementation. |
| 145 virtual void OnServerConnectionEvent( | 142 virtual void OnServerConnectionEvent( |
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 348 scoped_ptr<SyncEncryptionHandlerImpl> sync_encryption_handler_; | 345 scoped_ptr<SyncEncryptionHandlerImpl> sync_encryption_handler_; |
| 349 | 346 |
| 350 base::WeakPtrFactory<SyncManagerImpl> weak_ptr_factory_; | 347 base::WeakPtrFactory<SyncManagerImpl> weak_ptr_factory_; |
| 351 | 348 |
| 352 DISALLOW_COPY_AND_ASSIGN(SyncManagerImpl); | 349 DISALLOW_COPY_AND_ASSIGN(SyncManagerImpl); |
| 353 }; | 350 }; |
| 354 | 351 |
| 355 } // namespace syncer | 352 } // namespace syncer |
| 356 | 353 |
| 357 #endif // SYNC_INTERNAL_API_SYNC_MANAGER_H_ | 354 #endif // SYNC_INTERNAL_API_SYNC_MANAGER_H_ |
| OLD | NEW |