1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23
   24
   25
   26
   27
   28
   29
   30
   31
   32
   33
   34
   35
   36
   37
   38

content / browser / attribution_reporting / event_level_result.mojom [blame]

// 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 event-level outcomes from attempting to register
// a trigger.
//
// These values are persisted to logs. Entries should not be renumbered and
// numeric values should never be reused.
//
// LINT.IfChange(EventLevelResult)
enum EventLevelResult {
  kSuccess = 0,
  // The report was stored successfully, but it replaced an existing report
  // with a lower priority.
  kSuccessDroppedLowerPriority = 1,
  kInternalError = 2,
  kNoCapacityForConversionDestination = 3,
  kNoMatchingImpressions = 4,
  kDeduplicated = 5,
  kExcessiveAttributions = 6,
  kPriorityTooLow = 7,
  // Equivalent to the "noised" trigger result described in the spec.
  kNeverAttributedSource = 8,
  kExcessiveReportingOrigins = 9,
  kNoMatchingSourceFilterData = 10,
  kProhibitedByBrowserPolicy = 11,
  kNoMatchingConfigurations = 12,
  kExcessiveReports = 13,
  kFalselyAttributedSource = 14,
  kReportWindowPassed = 15,
  kNotRegistered = 16,
  kReportWindowNotStarted = 17,
  kNoMatchingTriggerData = 18,
};
// LINT.ThenChange(//tools/metrics/histograms/metadata/attribution_reporting/enums.xml:ConversionStorageCreateReportStatus)