#include "components/attribution_reporting/event_level_epsilon.h"
#include <optional>
#include "base/check.h"
#include "base/check_op.h"
#include "base/types/expected.h"
#include "base/values.h"
#include "components/attribution_reporting/constants.h"
#include "components/attribution_reporting/source_registration_error.mojom.h"
namespace attribution_reporting {
namespace {
SourceRegistrationError;
double g_max_event_level_epsilon = …;
bool IsEventLevelEpsilonValid(double epsilon) { … }
}
base::expected<EventLevelEpsilon, SourceRegistrationError>
EventLevelEpsilon::Parse(const base::Value::Dict& dict) { … }
double EventLevelEpsilon::max() { … }
EventLevelEpsilon::EventLevelEpsilon()
: … { … }
EventLevelEpsilon::EventLevelEpsilon(double epsilon) : … { … }
bool EventLevelEpsilon::SetIfValid(double epsilon) { … }
void EventLevelEpsilon::Serialize(base::Value::Dict& dict) const { … }
ScopedMaxEventLevelEpsilonForTesting::ScopedMaxEventLevelEpsilonForTesting(
double epsilon)
: … { … }
ScopedMaxEventLevelEpsilonForTesting::~ScopedMaxEventLevelEpsilonForTesting() { … }
}