#include "components/attribution_reporting/aggregatable_filtering_id_max_bytes.h"
#include <stddef.h>
#include <stdint.h>
#include <bit>
#include <optional>
#include "base/check.h"
#include "base/types/expected.h"
#include "base/types/expected_macros.h"
#include "base/values.h"
#include "components/attribution_reporting/constants.h"
#include "components/attribution_reporting/parsing_utils.h"
#include "components/attribution_reporting/trigger_registration_error.mojom.h"
namespace attribution_reporting {
namespace {
constexpr uint8_t kDefaultMaxBytes = …;
bool IsMaxBytesValueValid(int max_bytes_value) { … }
}
AggregatableFilteringIdsMaxBytes::AggregatableFilteringIdsMaxBytes()
: … { … }
AggregatableFilteringIdsMaxBytes::AggregatableFilteringIdsMaxBytes(int size)
: … { … }
std::optional<AggregatableFilteringIdsMaxBytes>
AggregatableFilteringIdsMaxBytes::Create(int size) { … }
base::expected<AggregatableFilteringIdsMaxBytes,
mojom::TriggerRegistrationError>
AggregatableFilteringIdsMaxBytes::Parse(const base::Value::Dict& registration) { … }
void AggregatableFilteringIdsMaxBytes::Serialize(
base::Value::Dict& dict) const { … }
bool AggregatableFilteringIdsMaxBytes::IsDefault() const { … }
bool AggregatableFilteringIdsMaxBytes::CanEncompass(
uint64_t filtering_id) const { … }
}