chromium/components/attribution_reporting/constants.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_ATTRIBUTION_REPORTING_CONSTANTS_H_
#define COMPONENTS_ATTRIBUTION_REPORTING_CONSTANTS_H_

#include <stddef.h>
#include <stdint.h>

#include "base/time/time.h"

namespace attribution_reporting {

inline constexpr uint64_t kDefaultFilteringId =;

inline constexpr size_t kMaxBytesPerFilterString =;
inline constexpr size_t kMaxValuesPerFilter =;
inline constexpr size_t kMaxFiltersPerSource =;

inline constexpr size_t kMaxDestinations =;

inline constexpr size_t kMaxEventLevelReportWindows =;

inline constexpr size_t kMaxBytesPerAggregationKeyId =;
inline constexpr size_t kMaxAggregationKeysPerSource =;

inline constexpr int kMaxAggregatableValue =;

inline constexpr base::TimeDelta kMinSourceExpiry =;
inline constexpr base::TimeDelta kMaxSourceExpiry =;

static_assert;

inline constexpr base::TimeDelta kMinReportWindow =;

static_assert;

inline constexpr int kMaxSettableEventLevelAttributionsPerSource =;

// https://wicg.github.io/attribution-reporting-api/#max-distinct-trigger-data-per-source
inline constexpr uint8_t kMaxTriggerDataPerSource =;

inline constexpr size_t kMaxTriggerContextIdLength =;

inline constexpr uint32_t kDefaultMaxEventStates =;

inline constexpr size_t kMaxScopesPerSource =;
inline constexpr size_t kMaxLengthPerAttributionScope =;

inline constexpr char kTriggerDataMatchingExact[] =;
inline constexpr char kTriggerDataMatchingModulus[] =;

inline constexpr char kSummaryOperatorCount[] =;
inline constexpr char kSummaryOperatorValueSum[] =;

inline constexpr char kAggregatableFilteringIdsMaxBytes[] =;
inline constexpr char kAggregatableReportWindow[] =;
inline constexpr char kAggregationKeys[] =;
inline constexpr char kAttributionScopes[] =;
inline constexpr char kDestination[] =;
inline constexpr char kDestinationLimitPriority[] =;
inline constexpr char kEndTimes[] =;
inline constexpr char kEventLevelEpsilon[] =;
inline constexpr char kEventReportWindow[] =;
inline constexpr char kEventReportWindows[] =;
inline constexpr char kExpiry[] =;
inline constexpr char kFilterData[] =;
inline constexpr char kLimit[] =;
inline constexpr char kMaxEventLevelReports[] =;
inline constexpr char kMaxEventStates[] =;
inline constexpr char kPriority[] =;
inline constexpr char kSourceEventId[] =;
inline constexpr char kStartTime[] =;
inline constexpr char kSummaryBuckets[] =;
inline constexpr char kSummaryOperator[] =;
inline constexpr char kTriggerData[] =;
inline constexpr char kTriggerDataMatching[] =;
inline constexpr char kTriggerSpecs[] =;

inline constexpr char kAggregatableDeduplicationKeys[] =;
inline constexpr char kAggregatableSourceRegistrationTime[] =;
inline constexpr char kAggregatableTriggerData[] =;
inline constexpr char kAggregatableValues[] =;
inline constexpr char kAggregationCoordinatorOrigin[] =;
inline constexpr char kDeduplicationKey[] =;
inline constexpr char kEventTriggerData[] =;
inline constexpr char kFilteringId[] =;
inline constexpr char kFilters[] =;
inline constexpr char kKeyPiece[] =;
inline constexpr char kSourceKeys[] =;
inline constexpr char kTriggerContextId[] =;
inline constexpr char kValue[] =;
inline constexpr char kValues[] =;

inline constexpr char kSourceRegistrationTimeInclude[] =;
inline constexpr char kSourceRegistrationTimeExclude[] =;

inline constexpr char kAttributionReportingRegisterSourceHeader[] =;

inline constexpr char kAttributionReportingRegisterTriggerHeader[] =;

inline constexpr char kAttributionReportingRegisterOsSourceHeader[] =;

inline constexpr char kAttributionReportingRegisterOsTriggerHeader[] =;

inline constexpr double kNullReportsRateIncludeSourceRegistrationTime =;
inline constexpr double kNullReportsRateExcludeSourceRegistrationTime =;

}  // namespace attribution_reporting

#endif  // COMPONENTS_ATTRIBUTION_REPORTING_CONSTANTS_H_