#include "components/attribution_reporting/event_trigger_data.h"
#include <stdint.h>
#include <utility>
#include "base/check_op.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/filters.h"
#include "components/attribution_reporting/parsing_utils.h"
#include "components/attribution_reporting/trigger_registration_error.mojom.h"
namespace attribution_reporting {
namespace {
TriggerRegistrationError;
}
base::expected<EventTriggerData, TriggerRegistrationError>
EventTriggerData::FromJSON(base::Value& value) { … }
EventTriggerData::EventTriggerData() = default;
EventTriggerData::EventTriggerData(uint64_t data,
int64_t priority,
std::optional<uint64_t> dedup_key,
FilterPair filters)
: … { … }
base::Value::Dict EventTriggerData::ToJson() const { … }
base::expected<EventTriggerValue, TriggerRegistrationError>
EventTriggerValue::Parse(const base::Value::Dict& dict) { … }
EventTriggerValue::EventTriggerValue(uint32_t value) : … { … }
void EventTriggerValue::Serialize(base::Value::Dict& dict) const { … }
}