#include "components/domain_reliability/config.h"
#include <optional>
#include <string_view>
#include <utility>
#include "base/json/json_reader.h"
#include "url/url_constants.h"
namespace {
bool ConvertURL(const base::Value* value, GURL* url) { … }
bool ConvertOrigin(const base::Value* value, url::Origin* origin) { … }
bool IsValidSampleRate(double p) { … }
}
namespace domain_reliability {
DomainReliabilityConfig::DomainReliabilityConfig()
: … { … }
DomainReliabilityConfig::~DomainReliabilityConfig() { … }
std::unique_ptr<const DomainReliabilityConfig>
DomainReliabilityConfig::FromJSON(std::string_view json) { … }
bool DomainReliabilityConfig::IsValid() const { … }
double DomainReliabilityConfig::GetSampleRate(bool request_successful) const { … }
void DomainReliabilityConfig::RegisterJSONConverter(
base::JSONValueConverter<DomainReliabilityConfig>* converter) { … }
}