#include "components/attribution_reporting/suitable_origin.h"
#include <optional>
#include <string>
#include <utility>
#include "base/check.h"
#include "components/attribution_reporting/is_origin_suitable.h"
#include "mojo/public/cpp/bindings/default_construct_tag.h"
#include "net/base/schemeful_site.h"
#include "url/gurl.h"
#include "url/origin.h"
namespace attribution_reporting {
bool IsSitePotentiallySuitable(const net::SchemefulSite& site) { … }
bool SuitableOrigin::IsSuitable(const url::Origin& origin) { … }
std::optional<SuitableOrigin> SuitableOrigin::Create(url::Origin origin) { … }
std::optional<SuitableOrigin> SuitableOrigin::Create(const GURL& url) { … }
std::optional<SuitableOrigin> SuitableOrigin::Deserialize(
std::string_view str) { … }
SuitableOrigin::SuitableOrigin(mojo::DefaultConstruct::Tag) { … }
SuitableOrigin::SuitableOrigin(url::Origin origin)
: … { … }
SuitableOrigin::~SuitableOrigin() = default;
SuitableOrigin::SuitableOrigin(const SuitableOrigin&) = default;
SuitableOrigin& SuitableOrigin::operator=(const SuitableOrigin&) = default;
SuitableOrigin::SuitableOrigin(SuitableOrigin&&) = default;
SuitableOrigin& SuitableOrigin::operator=(SuitableOrigin&&) = default;
std::string SuitableOrigin::Serialize() const { … }
bool SuitableOrigin::IsValid() const { … }
}