chromium/content/browser/attribution_reporting/store_source_result.mojom

// Copyright 2023 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;

// Represents the potential outcomes from attempting to register a source.
//
// These values are persisted to logs. Entries should not be renumbered and
// numeric values should never be reused.
//
// LINT.IfChange(StoreSourceResult)
enum StoreSourceResult {
  kSuccess = 0,
  kInternalError = 1,
  kInsufficientSourceCapacity = 2,
  kInsufficientUniqueDestinationCapacity = 3,
  kExcessiveReportingOrigins = 4,
  kProhibitedByBrowserPolicy = 5,
  kSuccessNoised = 6,
  kDestinationReportingLimitReached = 7,
  kDestinationGlobalLimitReached = 8,
  kDestinationBothLimitsReached = 9,
  kReportingOriginsPerSiteLimitReached = 10,
  kExceedsMaxChannelCapacity = 11,
  // Reserved: 12
  kExceedsMaxTriggerStateCardinality = 13,
  kDestinationPerDayReportingLimitReached = 14,
  kExceedsMaxScopesChannelCapacity = 15,
  kExceedsMaxEventStatesLimit = 16,
};
// LINT.ThenChange(//tools/metrics/histograms/metadata/attribution_reporting/enums.xml:ConversionStorageSourceStatus)