chromium/components/history/core/browser/sync/history_data_type_controller_helper.h

// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef COMPONENTS_HISTORY_CORE_BROWSER_SYNC_HISTORY_DATA_TYPE_CONTROLLER_HELPER_H_
#define COMPONENTS_HISTORY_CORE_BROWSER_SYNC_HISTORY_DATA_TYPE_CONTROLLER_HELPER_H_

#include "base/memory/raw_ptr.h"
#include "components/prefs/pref_change_registrar.h"
#include "components/sync/base/data_type.h"
#include "components/sync/service/data_type_controller.h"

class PrefService;

namespace syncer {
class SyncService;
}  // namespace syncer

namespace history {

// Helper class for implementing history-related DataTypeControllers. It
// implements the pref/policy kSavingBrowserHistoryDisabled: It calls
// SyncService::DataTypePreconditionChanged() when the pref changes.
// DataTypeControllers using this helper must call its GetPreconditionState().
class HistoryDataTypeControllerHelper {};

}  // namespace history

#endif  // COMPONENTS_HISTORY_CORE_BROWSER_SYNC_HISTORY_DATA_TYPE_CONTROLLER_HELPER_H_