Chromium Code Reviews| Index: components/sync_driver/sync_service.h |
| diff --git a/components/sync_driver/sync_service.h b/components/sync_driver/sync_service.h |
| index 1e47a6c5e05d803e30350b24b25828dc18bb6003..2d416cce304cdfb57178c1679c7c8505cb4db056 100644 |
| --- a/components/sync_driver/sync_service.h |
| +++ b/components/sync_driver/sync_service.h |
| @@ -22,6 +22,8 @@ struct UserShare; |
| namespace sync_driver { |
| +class DataTypeController; |
| +class LocalDeviceInfoProvider; |
| class OpenTabsUIDelegate; |
| class SyncService : public DataTypeEncryptionHandler { |
| @@ -173,6 +175,9 @@ class SyncService : public DataTypeEncryptionHandler { |
| // after calling this to force the encryption to occur. |
| virtual void EnableEncryptEverything() = 0; |
| + // Returns true if we are currently set to encrypt all the sync data. |
| + virtual bool EncryptEverythingEnabled() const = 0; |
| + |
| // Asynchronously sets the passphrase to |passphrase| for encryption. |type| |
| // specifies whether the passphrase is a custom passphrase or the GAIA |
| // password being reused as a passphrase. |
| @@ -199,6 +204,24 @@ class SyncService : public DataTypeEncryptionHandler { |
| // function. |
| virtual syncer::UserShare* GetUserShare() const = 0; |
| + // Returns DeviceInfo provider for the local device. |
| + virtual LocalDeviceInfoProvider* GetLocalDeviceInfoProvider() const = 0; |
| + |
| + // Registers a data type controller with the sync service. This |
| + // makes the data type controller available for use, it does not |
| + // enable or activate the synchronization of the data type (see |
| + // ActivateDataType). Takes ownership of the pointer. |
| + virtual void RegisterDataTypeController( |
| + DataTypeController* data_type_controller) = 0; |
| + |
| + // Called to re-enable a type disabled by DisableDatatype(..). Note, this does |
| + // not change the preferred state of a datatype, and is not persisted across |
| + // restarts. |
| + virtual void ReenableDatatype(syncer::ModelType type) = 0; |
| + |
| + // TODO(zea): Remove these and have the dtc's call directly into the SBH. |
| + virtual void DeactivateDataType(syncer::ModelType type) = 0; |
|
stanisc
2015/08/27 22:14:05
Right! I was going to do something like that to ma
Nicolas Zea
2015/08/27 23:37:16
Interesting, yeah, I agree a registrar that handle
|
| + |
| protected: |
| SyncService() {} |