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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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(); | 133 static int GetDefaultNudgeDelay(); |
134 static int GetPreferencesNudgeDelay(); | 134 static int GetSlowNudgeDelay(); |
135 | 135 |
136 // SyncEngineEventListener implementation. | 136 // SyncEngineEventListener implementation. |
137 virtual void OnSyncCycleEvent(const SyncCycleEvent& event) OVERRIDE; | 137 virtual void OnSyncCycleEvent(const SyncCycleEvent& event) OVERRIDE; |
138 virtual void OnActionableError(const SyncProtocolError& error) OVERRIDE; | 138 virtual void OnActionableError(const SyncProtocolError& error) OVERRIDE; |
139 virtual void OnRetryTimeChanged(base::Time retry_time) OVERRIDE; | 139 virtual void OnRetryTimeChanged(base::Time retry_time) OVERRIDE; |
140 virtual void OnThrottledTypesChanged(ModelTypeSet throttled_types) OVERRIDE; | 140 virtual void OnThrottledTypesChanged(ModelTypeSet throttled_types) OVERRIDE; |
141 virtual void OnMigrationRequested(ModelTypeSet types) OVERRIDE; | 141 virtual void OnMigrationRequested(ModelTypeSet types) OVERRIDE; |
142 virtual void OnProtocolEvent(const ProtocolEvent& event) OVERRIDE; | 142 virtual void OnProtocolEvent(const ProtocolEvent& event) OVERRIDE; |
143 | 143 |
144 // ServerConnectionEventListener implementation. | 144 // ServerConnectionEventListener implementation. |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
348 scoped_ptr<SyncEncryptionHandlerImpl> sync_encryption_handler_; | 348 scoped_ptr<SyncEncryptionHandlerImpl> sync_encryption_handler_; |
349 | 349 |
350 base::WeakPtrFactory<SyncManagerImpl> weak_ptr_factory_; | 350 base::WeakPtrFactory<SyncManagerImpl> weak_ptr_factory_; |
351 | 351 |
352 DISALLOW_COPY_AND_ASSIGN(SyncManagerImpl); | 352 DISALLOW_COPY_AND_ASSIGN(SyncManagerImpl); |
353 }; | 353 }; |
354 | 354 |
355 } // namespace syncer | 355 } // namespace syncer |
356 | 356 |
357 #endif // SYNC_INTERNAL_API_SYNC_MANAGER_H_ | 357 #endif // SYNC_INTERNAL_API_SYNC_MANAGER_H_ |
OLD | NEW |