chromium/content/browser/agent_cluster_key.cc

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

#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;

// static
AgentClusterKey AgentClusterKey::CreateSiteKeyed(const GURL& site_url) {}

// static
AgentClusterKey AgentClusterKey::CreateOriginKeyed(const url::Origin& origin) {}

// static
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) {}

}  // namespace content