chromium/components/domain_reliability/config.cc

// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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

namespace domain_reliability {

DomainReliabilityConfig::DomainReliabilityConfig()
    :{}
DomainReliabilityConfig::~DomainReliabilityConfig() {}

// static
std::unique_ptr<const DomainReliabilityConfig>
DomainReliabilityConfig::FromJSON(std::string_view json) {}

bool DomainReliabilityConfig::IsValid() const {}

double DomainReliabilityConfig::GetSampleRate(bool request_successful) const {}

// static
void DomainReliabilityConfig::RegisterJSONConverter(
    base::JSONValueConverter<DomainReliabilityConfig>* converter) {}

}  // namespace domain_reliability