#include "content/browser/agent_cluster_key.h"
#include "base/notreached.h"
namespace content {
AgentClusterKey::CrossOriginIsolationKey::CrossOriginIsolationKey(
const url::Origin& common_coi_origin,
CrossOriginIsolationMode cross_origin_isolation_mode)
: … { … }
AgentClusterKey::CrossOriginIsolationKey::CrossOriginIsolationKey(
const CrossOriginIsolationKey& other) = default;
AgentClusterKey::CrossOriginIsolationKey::~CrossOriginIsolationKey() = default;
bool AgentClusterKey::CrossOriginIsolationKey::operator==(
const CrossOriginIsolationKey& b) const = default;
bool AgentClusterKey::CrossOriginIsolationKey::operator!=(
const CrossOriginIsolationKey& b) const = default;
AgentClusterKey AgentClusterKey::CreateSiteKeyed(const GURL& site_url) { … }
AgentClusterKey AgentClusterKey::CreateOriginKeyed(const url::Origin& origin) { … }
AgentClusterKey AgentClusterKey::CreateWithCrossOriginIsolationKey(
const url::Origin& origin,
const CrossOriginIsolationKey& isolation_key) { … }
AgentClusterKey::AgentClusterKey(const AgentClusterKey& other) = default;
AgentClusterKey::~AgentClusterKey() = default;
bool AgentClusterKey::IsSiteKeyed() const { … }
bool AgentClusterKey::IsOriginKeyed() const { … }
const GURL& AgentClusterKey::GetSite() const { … }
const url::Origin& AgentClusterKey::GetOrigin() const { … }
const std::optional<AgentClusterKey::CrossOriginIsolationKey>&
AgentClusterKey::GetCrossOriginIsolationKey() const { … }
bool AgentClusterKey::operator==(const AgentClusterKey& b) const = default;
bool AgentClusterKey::operator!=(const AgentClusterKey& b) const = default;
bool AgentClusterKey::operator<(const AgentClusterKey& b) const { … }
AgentClusterKey::AgentClusterKey(
const absl::variant<GURL, url::Origin>& key,
const std::optional<CrossOriginIsolationKey>& isolation_key)
: … { … }
std::ostream& operator<<(std::ostream& out,
const AgentClusterKey& agent_cluster_key) { … }
}