virtual scoped_ptr<base::ListValue> DumpFiles(const GURL& origin) = 0;
virtual scoped_ptr<base::ListValue> DumpDatabase() = 0;
virtual void SetSyncEnabled(bool enabled) = 0;
- virtual void PromoteDemotedChanges() = 0;
+ virtual void PromoteDemotedChanges(const base::Closure& callback) = 0;
// See LocalChangeProcessor for the details.
virtual void ApplyLocalChange(
const fileapi::FileSystemURL& url,
const SyncStatusCallback& callback) = 0;
- // See drive::DriveNotificationObserver for the details.
- virtual void OnNotificationReceived() = 0;
-
- // See drive::DriveServiceObserver for the details.
- virtual void OnReadyToSendRequests() = 0;
- virtual void OnRefreshTokenInvalid() = 0;
-
- // See net::NetworkChangeNotifier::NetworkChangeObserver for the details.
- virtual void OnNetworkChanged(
- net::NetworkChangeNotifier::ConnectionType type) = 0;
-
- virtual drive::DriveServiceInterface* GetDriveService() = 0;
- virtual drive::DriveUploaderInterface* GetDriveUploader() = 0;
- virtual MetadataDatabase* GetMetadataDatabase() = 0;
- virtual SyncTaskManager* GetSyncTaskManager() = 0;
+ virtual void ActivateService(RemoteServiceState service_state,
+ const std::string& description) = 0;
+ virtual void DeactivateService(const std::string& description) = 0;
virtual void DetachFromSequence() = 0;
private:
friend class SyncEngineTest;
- // TODO(peria): Remove this interface after making FakeSyncWorker class.
- virtual void SetHasRefreshToken(bool has_refresh_token) = 0;
-
DISALLOW_COPY_AND_ASSIGN(SyncWorkerInterface);
};