#include "net/reporting/reporting_endpoint.h"
#include <string>
#include <tuple>
#include "base/time/time.h"
#include "net/base/network_anonymization_key.h"
#include "net/reporting/reporting_target_type.h"
#include "url/gurl.h"
#include "url/origin.h"
namespace net {
ReportingEndpointGroupKey::ReportingEndpointGroupKey() = default;
ReportingEndpointGroupKey::ReportingEndpointGroupKey(
const NetworkAnonymizationKey& network_anonymization_key,
const std::optional<url::Origin>& origin,
const std::string& group_name,
ReportingTargetType target_type)
: … { … }
ReportingEndpointGroupKey::ReportingEndpointGroupKey(
const NetworkAnonymizationKey& network_anonymization_key,
std::optional<base::UnguessableToken> reporting_source,
const std::optional<url::Origin>& origin,
const std::string& group_name,
ReportingTargetType target_type)
: … { … }
ReportingEndpointGroupKey::ReportingEndpointGroupKey(
const ReportingEndpointGroupKey& other,
const std::optional<base::UnguessableToken>& reporting_source)
: … { … }
ReportingEndpointGroupKey::ReportingEndpointGroupKey(
const ReportingEndpointGroupKey& other) = default;
ReportingEndpointGroupKey::ReportingEndpointGroupKey(
ReportingEndpointGroupKey&& other) = default;
ReportingEndpointGroupKey& ReportingEndpointGroupKey::operator=(
const ReportingEndpointGroupKey&) = default;
ReportingEndpointGroupKey& ReportingEndpointGroupKey::operator=(
ReportingEndpointGroupKey&&) = default;
ReportingEndpointGroupKey::~ReportingEndpointGroupKey() = default;
bool operator!=(const ReportingEndpointGroupKey& lhs,
const ReportingEndpointGroupKey& rhs) { … }
bool operator<(const ReportingEndpointGroupKey& lhs,
const ReportingEndpointGroupKey& rhs) { … }
bool operator>(const ReportingEndpointGroupKey& lhs,
const ReportingEndpointGroupKey& rhs) { … }
std::string ReportingEndpointGroupKey::ToString() const { … }
const int ReportingEndpoint::EndpointInfo::kDefaultPriority = …;
const int ReportingEndpoint::EndpointInfo::kDefaultWeight = …;
ReportingEndpoint::ReportingEndpoint() = default;
ReportingEndpoint::ReportingEndpoint(const ReportingEndpointGroupKey& group,
const EndpointInfo& info)
: … { … }
ReportingEndpoint::ReportingEndpoint(const ReportingEndpoint& other) = default;
ReportingEndpoint::ReportingEndpoint(ReportingEndpoint&& other) = default;
ReportingEndpoint& ReportingEndpoint::operator=(const ReportingEndpoint&) =
default;
ReportingEndpoint& ReportingEndpoint::operator=(ReportingEndpoint&&) = default;
ReportingEndpoint::~ReportingEndpoint() = default;
bool ReportingEndpoint::is_valid() const { … }
ReportingEndpointGroup::ReportingEndpointGroup() = default;
ReportingEndpointGroup::ReportingEndpointGroup(
const ReportingEndpointGroup& other) = default;
ReportingEndpointGroup::~ReportingEndpointGroup() = default;
CachedReportingEndpointGroup::CachedReportingEndpointGroup(
const ReportingEndpointGroupKey& group_key,
OriginSubdomains include_subdomains,
base::Time expires,
base::Time last_used)
: … { … }
CachedReportingEndpointGroup::CachedReportingEndpointGroup(
const ReportingEndpointGroup& endpoint_group,
base::Time now)
: … { … }
}