chromium/net/cookies/cookie_inclusion_status.cc

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

#include "net/cookies/cookie_inclusion_status.h"

#include <initializer_list>
#include <string_view>
#include <tuple>
#include <utility>

#include "base/notreached.h"
#include "base/ranges/algorithm.h"
#include "base/strings/strcat.h"
#include "url/gurl.h"

namespace net {

CookieInclusionStatus::CookieInclusionStatus() = default;

CookieInclusionStatus::CookieInclusionStatus(ExclusionReason reason) {}

CookieInclusionStatus::CookieInclusionStatus(ExclusionReason reason,
                                             WarningReason warning) {}

CookieInclusionStatus::CookieInclusionStatus(WarningReason warning) {}

CookieInclusionStatus::CookieInclusionStatus(
    std::vector<ExclusionReason> exclusions,
    std::vector<WarningReason> warnings,
    ExemptionReason exemption) {}

CookieInclusionStatus::CookieInclusionStatus(
    const CookieInclusionStatus& other) = default;

CookieInclusionStatus& CookieInclusionStatus::operator=(
    const CookieInclusionStatus& other) = default;

bool CookieInclusionStatus::operator==(
    const CookieInclusionStatus& other) const {}

bool CookieInclusionStatus::operator!=(
    const CookieInclusionStatus& other) const {}

bool CookieInclusionStatus::IsInclude() const {}

bool CookieInclusionStatus::HasExclusionReason(ExclusionReason reason) const {}

bool CookieInclusionStatus::HasOnlyExclusionReason(
    ExclusionReason reason) const {}

void CookieInclusionStatus::AddExclusionReason(ExclusionReason reason) {}

void CookieInclusionStatus::RemoveExclusionReason(ExclusionReason reason) {}

void CookieInclusionStatus::RemoveExclusionReasons(
    const std::vector<ExclusionReason>& reasons) {}

void CookieInclusionStatus::MaybeSetExemptionReason(ExemptionReason reason) {}

CookieInclusionStatus::ExclusionReasonBitset
CookieInclusionStatus::ExclusionReasonsWithout(
    const std::vector<ExclusionReason>& reasons) const {}

void CookieInclusionStatus::MaybeClearSameSiteWarning() {}

void CookieInclusionStatus::MaybeClearThirdPartyPhaseoutReason() {}

bool CookieInclusionStatus::ShouldRecordDowngradeMetrics() const {}

bool CookieInclusionStatus::ShouldWarn() const {}

bool CookieInclusionStatus::HasWarningReason(WarningReason reason) const {}

bool CookieInclusionStatus::HasSchemefulDowngradeWarning(
    CookieInclusionStatus::WarningReason* reason) const {}

void CookieInclusionStatus::AddWarningReason(WarningReason reason) {}

void CookieInclusionStatus::RemoveWarningReason(WarningReason reason) {}

CookieInclusionStatus::ContextDowngradeMetricValues
CookieInclusionStatus::GetBreakingDowngradeMetricsEnumValue(
    const GURL& url) const {}

std::string CookieInclusionStatus::GetDebugString() const {}

bool CookieInclusionStatus::HasExactlyExclusionReasonsForTesting(
    std::vector<CookieInclusionStatus::ExclusionReason> reasons) const {}

bool CookieInclusionStatus::HasExactlyWarningReasonsForTesting(
    std::vector<WarningReason> reasons) const {}

// static
bool CookieInclusionStatus::ValidateExclusionAndWarningFromWire(
    uint32_t exclusion_reasons,
    uint32_t warning_reasons) {}

CookieInclusionStatus CookieInclusionStatus::MakeFromReasonsForTesting(
    std::vector<ExclusionReason> exclusions,
    std::vector<WarningReason> warnings,
    ExemptionReason exemption,
    bool use_literal) {}

bool CookieInclusionStatus::ExcludedByUserPreferencesOrTPCD() const {}

}  // namespace net