chromium/components/attribution_reporting/trigger_registration_error.mojom

// 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.

module attribution_reporting.mojom;

// These values are persisted to logs. Entries should not be renumbered and
// numeric values should never be reused.
//
// LINT.IfChange(TriggerRegistrationError)
enum TriggerRegistrationError {
  kInvalidJson = 0,
  kRootWrongType = 1,

  kFiltersWrongType = 2,
  kFiltersValueInvalid = 3,
  kFiltersLookbackWindowValueInvalid = 4,
  kFiltersUsingReservedKey = 5,
  kFiltersListValueInvalid = 6,
  kFiltersListLookbackWindowValueInvalid = 7,
  kFiltersListUsingReservedKey = 8,

  kAggregatableValuesWrongType = 9,
  kAggregatableValuesKeyTooLong = 10,
  kAggregatableValuesListValuesFieldMissing = 11,
  kAggregatableValuesValueInvalid = 12,
  kAggregatableValuesListKeyTooLong = 13,
  kAggregatableValuesListValueInvalid = 14,

  kAggregatableTriggerDataWrongType = 15,
  kAggregatableTriggerDataKeyPieceMissing = 16,
  kAggregatableTriggerDataSourceKeysInvalid = 17,
  kAggregatableTriggerDataKeyPieceInvalid = 18,

  kEventTriggerDataWrongType = 19,
  kEventTriggerDataValueInvalid = 20,
  kEventPriorityValueInvalid = 21,
  kEventDedupKeyValueInvalid = 22,

  kAggregationCoordinatorValueInvalid = 23,

  kAggregatableDedupKeyValueInvalid = 24,
  kAggregatableDedupKeyWrongType = 25,

  kAggregatableSourceRegistrationTimeValueInvalid = 26,

  kTriggerContextIdInvalidValue = 27,
  kTriggerContextIdInvalidSourceRegistrationTimeConfig = 28,

  kEventValueInvalid = 29,

  kAggregatableFilteringIdMaxBytesInvalidValue = 30,
  kAggregatableFilteringIdsMaxBytesInvalidSourceRegistrationTimeConfig = 31,

  kAttributionScopesInvalid = 32,
  kAttributionScopesValueInvalid = 33,
};
// LINT.ThenChange(//tools/metrics/histograms/metadata/attribution_reporting/enums.xml:ConversionTriggerRegistrationError)