#include "components/sync/service/backend_migrator.h"
#include "base/functional/bind.h"
#include "base/location.h"
#include "base/logging.h"
#include "base/observer_list.h"
#include "base/strings/string_number_conversions.h"
#include "base/task/sequenced_task_runner.h"
namespace syncer {
MigrationObserver::~MigrationObserver() = default;
BackendMigrator::BackendMigrator(
const std::string& name,
DataTypeManager* manager,
const base::RepeatingClosure& reconfigure_callback,
const base::RepeatingClosure& migration_done_callback)
: … { … }
BackendMigrator::~BackendMigrator() = default;
#define SLOG …
#define SDVLOG …
void BackendMigrator::MigrateTypes(DataTypeSet types) { … }
void BackendMigrator::AddMigrationObserver(MigrationObserver* observer) { … }
void BackendMigrator::RemoveMigrationObserver(MigrationObserver* observer) { … }
void BackendMigrator::ChangeState(State new_state) { … }
bool BackendMigrator::TryStart() { … }
void BackendMigrator::RestartMigration() { … }
void BackendMigrator::OnConfigureDone(
const DataTypeManager::ConfigureResult& result) { … }
void BackendMigrator::OnConfigureDoneImpl(
const DataTypeManager::ConfigureResult& result) { … }
BackendMigrator::State BackendMigrator::state() const { … }
DataTypeSet BackendMigrator::GetPendingMigrationTypesForTest() const { … }
#undef SDVLOG
#undef SLOG
}