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 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 virtual syncer::UserShare* GetUserShare() const = 0; | 261 virtual syncer::UserShare* GetUserShare() const = 0; |
262 | 262 |
263 // Returns DeviceInfo provider for the local device. | 263 // Returns DeviceInfo provider for the local device. |
264 virtual LocalDeviceInfoProvider* GetLocalDeviceInfoProvider() const = 0; | 264 virtual LocalDeviceInfoProvider* GetLocalDeviceInfoProvider() const = 0; |
265 | 265 |
266 // Registers a data type controller with the sync service. This | 266 // Registers a data type controller with the sync service. This |
267 // makes the data type controller available for use, it does not | 267 // makes the data type controller available for use, it does not |
268 // enable or activate the synchronization of the data type (see | 268 // enable or activate the synchronization of the data type (see |
269 // ActivateDataType). Takes ownership of the pointer. | 269 // ActivateDataType). Takes ownership of the pointer. |
270 virtual void RegisterDataTypeController( | 270 virtual void RegisterDataTypeController( |
271 DataTypeController* data_type_controller) = 0; | 271 std::unique_ptr<DataTypeController> data_type_controller) = 0; |
272 | 272 |
273 // Called to re-enable a type disabled by DisableDatatype(..). Note, this does | 273 // Called to re-enable a type disabled by DisableDatatype(..). Note, this does |
274 // not change the preferred state of a datatype, and is not persisted across | 274 // not change the preferred state of a datatype, and is not persisted across |
275 // restarts. | 275 // restarts. |
276 virtual void ReenableDatatype(syncer::ModelType type) = 0; | 276 virtual void ReenableDatatype(syncer::ModelType type) = 0; |
277 | 277 |
278 // Return sync token status. | 278 // Return sync token status. |
279 virtual SyncTokenStatus GetSyncTokenStatus() const = 0; | 279 virtual SyncTokenStatus GetSyncTokenStatus() const = 0; |
280 | 280 |
281 // Get a description of the sync status for displaying in the user interface. | 281 // Get a description of the sync status for displaying in the user interface. |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
338 protected: | 338 protected: |
339 SyncService() {} | 339 SyncService() {} |
340 | 340 |
341 private: | 341 private: |
342 DISALLOW_COPY_AND_ASSIGN(SyncService); | 342 DISALLOW_COPY_AND_ASSIGN(SyncService); |
343 }; | 343 }; |
344 | 344 |
345 } // namespace sync_driver | 345 } // namespace sync_driver |
346 | 346 |
347 #endif // COMPONENTS_SYNC_DRIVER_SYNC_SERVICE_H_ | 347 #endif // COMPONENTS_SYNC_DRIVER_SYNC_SERVICE_H_ |
OLD | NEW |