#include "services/preferences/tracked/tracked_split_preference.h"
#include <vector>
#include "base/check.h"
#include "base/notreached.h"
#include "base/values.h"
#include "services/preferences/public/mojom/tracked_preference_validation_delegate.mojom.h"
#include "services/preferences/tracked/pref_hash_store_transaction.h"
ValueState;
TrackedSplitPreference::TrackedSplitPreference(
const std::string& pref_path,
size_t reporting_id,
size_t reporting_ids_count,
prefs::mojom::TrackedPreferenceMetadata::EnforcementLevel enforcement_level,
prefs::mojom::TrackedPreferenceMetadata::ValueType value_type,
prefs::mojom::TrackedPreferenceValidationDelegate* delegate)
: … { … }
TrackedPreferenceType TrackedSplitPreference::GetType() const { … }
void TrackedSplitPreference::OnNewValue(
const base::Value* value,
PrefHashStoreTransaction* transaction) const { … }
bool TrackedSplitPreference::EnforceAndReport(
base::Value::Dict& pref_store_contents,
PrefHashStoreTransaction* transaction,
PrefHashStoreTransaction* external_validation_transaction) const { … }