| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 COMPONENTS_SYNC_DRIVER_SYNC_SERVICE_H_ | 5 #ifndef COMPONENTS_SYNC_DRIVER_SYNC_SERVICE_H_ |
| 6 #define COMPONENTS_SYNC_DRIVER_SYNC_SERVICE_H_ | 6 #define COMPONENTS_SYNC_DRIVER_SYNC_SERVICE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 // Used by tests. | 193 // Used by tests. |
| 194 virtual bool IsSetupInProgress() const = 0; | 194 virtual bool IsSetupInProgress() const = 0; |
| 195 | 195 |
| 196 // Whether the data types active for the current mode have finished | 196 // Whether the data types active for the current mode have finished |
| 197 // configuration. | 197 // configuration. |
| 198 virtual bool ConfigurationDone() const = 0; | 198 virtual bool ConfigurationDone() const = 0; |
| 199 | 199 |
| 200 virtual const GoogleServiceAuthError& GetAuthError() const = 0; | 200 virtual const GoogleServiceAuthError& GetAuthError() const = 0; |
| 201 virtual bool HasUnrecoverableError() const = 0; | 201 virtual bool HasUnrecoverableError() const = 0; |
| 202 | 202 |
| 203 // Returns true if the SyncBackendHost has told us it's ready to accept | 203 // Returns true if the SyncEngine has told us it's ready to accept changes. |
| 204 // changes. This should only be used for sync's internal configuration logic | |
| 205 // (such as deciding when to prompt for an encryption passphrase). | |
| 206 virtual bool IsBackendInitialized() const = 0; | 204 virtual bool IsBackendInitialized() const = 0; |
| 207 | 205 |
| 208 // Return the active OpenTabsUIDelegate. If open/proxy tabs is not enabled or | 206 // Return the active OpenTabsUIDelegate. If open/proxy tabs is not enabled or |
| 209 // not currently syncing, returns nullptr. | 207 // not currently syncing, returns nullptr. |
| 210 virtual sync_sessions::OpenTabsUIDelegate* GetOpenTabsUIDelegate() = 0; | 208 virtual sync_sessions::OpenTabsUIDelegate* GetOpenTabsUIDelegate() = 0; |
| 211 | 209 |
| 212 // Returns true if OnPassphraseRequired has been called for decryption and | 210 // Returns true if OnPassphraseRequired has been called for decryption and |
| 213 // we have an encrypted data type enabled. | 211 // we have an encrypted data type enabled. |
| 214 virtual bool IsPassphraseRequiredForDecryption() const = 0; | 212 virtual bool IsPassphraseRequiredForDecryption() const = 0; |
| 215 | 213 |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 328 protected: | 326 protected: |
| 329 SyncService() {} | 327 SyncService() {} |
| 330 | 328 |
| 331 private: | 329 private: |
| 332 DISALLOW_COPY_AND_ASSIGN(SyncService); | 330 DISALLOW_COPY_AND_ASSIGN(SyncService); |
| 333 }; | 331 }; |
| 334 | 332 |
| 335 } // namespace syncer | 333 } // namespace syncer |
| 336 | 334 |
| 337 #endif // COMPONENTS_SYNC_DRIVER_SYNC_SERVICE_H_ | 335 #endif // COMPONENTS_SYNC_DRIVER_SYNC_SERVICE_H_ |
| OLD | NEW |