#ifndef COMPONENTS_ATTRIBUTION_REPORTING_AGGREGATABLE_DEDUP_KEY_H_
#define COMPONENTS_ATTRIBUTION_REPORTING_AGGREGATABLE_DEDUP_KEY_H_
#include <stdint.h>
#include <optional>
#include "base/component_export.h"
#include "base/types/expected.h"
#include "components/attribution_reporting/filters.h"
#include "components/attribution_reporting/trigger_registration_error.mojom-forward.h"
namespace base {
class DictValue;
}
namespace attribution_reporting {
struct COMPONENT_EXPORT(ATTRIBUTION_REPORTING) AggregatableDedupKey {
static base::expected<AggregatableDedupKey, mojom::TriggerRegistrationError>
FromJSON(base::Value& value);
std::optional<uint64_t> dedup_key;
FilterPair filters;
AggregatableDedupKey();
AggregatableDedupKey(std::optional<uint64_t> dedup_key, FilterPair);
base::DictValue ToJson() const;
friend bool operator==(const AggregatableDedupKey&,
const AggregatableDedupKey&) = default;
};
}
#endif