Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1242)

Unified Diff: components/sync_driver/sync_service.h

Issue 1310553005: [Sync] Replace ProfileSyncComponentsFactory with SyncClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Really fix GN Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/sync_driver/sync_client.h ('k') | components/sync_driver/ui_data_type_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync_driver/sync_service.h
diff --git a/components/sync_driver/sync_service.h b/components/sync_driver/sync_service.h
index 2a659091bf35ecc17472e8ccbaffcc2c07513caa..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 {
@@ -118,10 +120,6 @@ class SyncService : public DataTypeEncryptionHandler {
virtual void OnUserChoseDatatypes(bool sync_everything,
syncer::ModelTypeSet chosen_types) = 0;
- // Overridden by tests.
- // TODO(zea): Remove these and have the dtc's call directly into the SBH.
- virtual void DeactivateDataType(syncer::ModelType type) = 0;
-
// Called whe Sync has been setup by the user and can be started.
virtual void SetSyncSetupCompleted() = 0;
@@ -177,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.
@@ -203,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;
+
protected:
SyncService() {}
« no previous file with comments | « components/sync_driver/sync_client.h ('k') | components/sync_driver/ui_data_type_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698