#include "components/history/core/browser/sync/history_delete_directives_data_type_controller.h"
#include <utility>
#include "base/feature_list.h"
#include "base/memory/weak_ptr.h"
#include "components/history/core/browser/history_service.h"
#include "components/sync/base/features.h"
#include "components/sync/model/data_type_store_service.h"
#include "components/sync/service/sync_service.h"
#include "components/sync/service/sync_user_settings.h"
namespace history {
namespace {
base::WeakPtr<syncer::SyncableService> GetSyncableServiceFromHistoryService(
HistoryService* history_service) { … }
DelegateMode;
DelegateMode GetDelegateMode() { … }
}
HistoryDeleteDirectivesDataTypeController::
HistoryDeleteDirectivesDataTypeController(
const base::RepeatingClosure& dump_stack,
syncer::SyncService* sync_service,
syncer::DataTypeStoreService* data_type_store_service,
HistoryService* history_service,
PrefService* pref_service)
: … { … }
HistoryDeleteDirectivesDataTypeController::
~HistoryDeleteDirectivesDataTypeController() = default;
syncer::DataTypeController::PreconditionState
HistoryDeleteDirectivesDataTypeController::GetPreconditionState() const { … }
void HistoryDeleteDirectivesDataTypeController::LoadModels(
const syncer::ConfigureContext& configure_context,
const ModelLoadCallback& model_load_callback) { … }
void HistoryDeleteDirectivesDataTypeController::Stop(
syncer::SyncStopMetadataFate fate,
StopCallback callback) { … }
void HistoryDeleteDirectivesDataTypeController::OnStateChanged(
syncer::SyncService* sync) { … }
}