#include "components/browser_sync/sync_engine_factory_impl.h"
#include <utility>
#include "base/functional/bind.h"
#include "base/task/sequenced_task_runner.h"
#include "base/task/task_traits.h"
#include "base/task/thread_pool.h"
#include "base/time/default_clock.h"
#include "components/browser_sync/active_devices_provider_impl.h"
#include "components/signin/public/base/gaia_id_hash.h"
#include "components/sync/base/legacy_directory_deletion.h"
#include "components/sync/engine/sync_engine.h"
#include "components/sync/invalidations/sync_invalidations_service.h"
#include "components/sync/service/glue/sync_engine_impl.h"
#include "components/sync/service/glue/sync_transport_data_prefs.h"
#include "components/sync/service/sync_client.h"
#include "components/sync_device_info/device_info_tracker.h"
namespace browser_sync {
SyncEngineFactoryImpl::SyncEngineFactoryImpl(
syncer::SyncClient* sync_client,
syncer::DeviceInfoTracker* device_info_tracker,
const base::FilePath& sync_data_folder)
: … { … }
SyncEngineFactoryImpl::~SyncEngineFactoryImpl() = default;
std::unique_ptr<syncer::SyncEngine>
SyncEngineFactoryImpl::CreateSyncEngine(
const std::string& name,
const signin::GaiaIdHash& gaia_id_hash,
syncer::SyncInvalidationsService* sync_invalidation_service) { … }
bool SyncEngineFactoryImpl::HasTransportDataIncludingFirstSync(
const signin::GaiaIdHash& gaia_id_hash) { … }
void SyncEngineFactoryImpl::CleanupOnDisableSync() { … }
void SyncEngineFactoryImpl::ClearTransportDataForAccount(
const signin::GaiaIdHash& gaia_id_hash) { … }
}