#include "components/attribution_reporting/max_event_level_reports.h"
#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/source_registration_error.mojom.h"
#include "components/attribution_reporting/source_type.mojom.h"
namespace attribution_reporting {
namespace {
SourceRegistrationError;
SourceType;
bool IsMaxEventLevelReportsValid(int i) { … }
int DefaultMaxEventLevelReports(SourceType source_type) { … }
}
base::expected<MaxEventLevelReports, SourceRegistrationError>
MaxEventLevelReports::Parse(const base::Value::Dict& dict,
SourceType source_type) { … }
MaxEventLevelReports MaxEventLevelReports::Max() { … }
MaxEventLevelReports::MaxEventLevelReports(int max_event_level_reports)
: … { … }
MaxEventLevelReports::MaxEventLevelReports(SourceType source_type)
: … { … }
bool MaxEventLevelReports::SetIfValid(int max_event_level_reports) { … }
void MaxEventLevelReports::Serialize(base::Value::Dict& dict) const { … }
}