| 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 virtual void OnPassphraseAccepted() OVERRIDE; | 120 virtual void OnPassphraseAccepted() OVERRIDE; |
| 121 virtual void OnBootstrapTokenUpdated( | 121 virtual void OnBootstrapTokenUpdated( |
| 122 const std::string& bootstrap_token, | 122 const std::string& bootstrap_token, |
| 123 BootstrapTokenType type) OVERRIDE; | 123 BootstrapTokenType type) OVERRIDE; |
| 124 virtual void OnEncryptedTypesChanged( | 124 virtual void OnEncryptedTypesChanged( |
| 125 ModelTypeSet encrypted_types, | 125 ModelTypeSet encrypted_types, |
| 126 bool encrypt_everything) OVERRIDE; | 126 bool encrypt_everything) OVERRIDE; |
| 127 virtual void OnEncryptionComplete() OVERRIDE; | 127 virtual void OnEncryptionComplete() OVERRIDE; |
| 128 virtual void OnCryptographerStateChanged( | 128 virtual void OnCryptographerStateChanged( |
| 129 Cryptographer* cryptographer) OVERRIDE; | 129 Cryptographer* cryptographer) OVERRIDE; |
| 130 virtual void OnPassphraseStateChanged(PassphraseState state) OVERRIDE; | 130 virtual void OnPassphraseTypeChanged(PassphraseType type) OVERRIDE; |
| 131 | 131 |
| 132 // Return the currently active (validated) username for use with syncable | 132 // Return the currently active (validated) username for use with syncable |
| 133 // types. | 133 // types. |
| 134 const std::string& username_for_share() const; | 134 const std::string& username_for_share() const; |
| 135 | 135 |
| 136 static int GetDefaultNudgeDelay(); | 136 static int GetDefaultNudgeDelay(); |
| 137 static int GetPreferencesNudgeDelay(); | 137 static int GetPreferencesNudgeDelay(); |
| 138 | 138 |
| 139 // SyncEngineEventListener implementation. | 139 // SyncEngineEventListener implementation. |
| 140 virtual void OnSyncEngineEvent(const SyncEngineEvent& event) OVERRIDE; | 140 virtual void OnSyncEngineEvent(const SyncEngineEvent& event) OVERRIDE; |
| (...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 376 // changing passphrases, and in general handles sync-specific interactions | 376 // changing passphrases, and in general handles sync-specific interactions |
| 377 // with the cryptographer. | 377 // with the cryptographer. |
| 378 scoped_ptr<SyncEncryptionHandlerImpl> sync_encryption_handler_; | 378 scoped_ptr<SyncEncryptionHandlerImpl> sync_encryption_handler_; |
| 379 | 379 |
| 380 DISALLOW_COPY_AND_ASSIGN(SyncManagerImpl); | 380 DISALLOW_COPY_AND_ASSIGN(SyncManagerImpl); |
| 381 }; | 381 }; |
| 382 | 382 |
| 383 } // namespace syncer | 383 } // namespace syncer |
| 384 | 384 |
| 385 #endif // SYNC_INTERNAL_API_SYNC_MANAGER_H_ | 385 #endif // SYNC_INTERNAL_API_SYNC_MANAGER_H_ |
| OLD | NEW |