| 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 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 SyncBackendHost has told us it's ready to accept |
| 204 // changes. This should only be used for sync's internal configuration logic | 204 // changes. This should only be used for sync's internal configuration logic |
| 205 // (such as deciding when to prompt for an encryption passphrase). | 205 // (such as deciding when to prompt for an encryption passphrase). |
| 206 virtual bool IsBackendInitialized() const = 0; | 206 virtual bool IsBackendInitialized() const = 0; |
| 207 | 207 |
| 208 // Return the active OpenTabsUIDelegate. If sessions is not enabled or not | 208 // Return the active OpenTabsUIDelegate. If open/proxy tabs is not enabled or |
| 209 // currently syncing, returns nullptr. | 209 // not currently syncing, returns nullptr. |
| 210 virtual sync_sessions::OpenTabsUIDelegate* GetOpenTabsUIDelegate() = 0; | 210 virtual sync_sessions::OpenTabsUIDelegate* GetOpenTabsUIDelegate() = 0; |
| 211 | 211 |
| 212 // Returns true if OnPassphraseRequired has been called for decryption and | 212 // Returns true if OnPassphraseRequired has been called for decryption and |
| 213 // we have an encrypted data type enabled. | 213 // we have an encrypted data type enabled. |
| 214 virtual bool IsPassphraseRequiredForDecryption() const = 0; | 214 virtual bool IsPassphraseRequiredForDecryption() const = 0; |
| 215 | 215 |
| 216 // Returns the time the current explicit passphrase (if any), was set. | 216 // Returns the time the current explicit passphrase (if any), was set. |
| 217 // If no secondary passphrase is in use, or no time is available, returns an | 217 // If no secondary passphrase is in use, or no time is available, returns an |
| 218 // unset base::Time. | 218 // unset base::Time. |
| 219 virtual base::Time GetExplicitPassphraseTime() const = 0; | 219 virtual base::Time GetExplicitPassphraseTime() const = 0; |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 328 protected: | 328 protected: |
| 329 SyncService() {} | 329 SyncService() {} |
| 330 | 330 |
| 331 private: | 331 private: |
| 332 DISALLOW_COPY_AND_ASSIGN(SyncService); | 332 DISALLOW_COPY_AND_ASSIGN(SyncService); |
| 333 }; | 333 }; |
| 334 | 334 |
| 335 } // namespace syncer | 335 } // namespace syncer |
| 336 | 336 |
| 337 #endif // COMPONENTS_SYNC_DRIVER_SYNC_SERVICE_H_ | 337 #endif // COMPONENTS_SYNC_DRIVER_SYNC_SERVICE_H_ |
| OLD | NEW |