#include "net/cookies/site_for_cookies.h"
#include <utility>
#include "base/strings/strcat.h"
#include "base/strings/string_util.h"
#include "net/base/registry_controlled_domains/registry_controlled_domain.h"
#include "net/cookies/cookie_util.h"
namespace net {
SiteForCookies::SiteForCookies() = default;
SiteForCookies::SiteForCookies(const SchemefulSite& site)
: … { … }
SiteForCookies::SiteForCookies(const SiteForCookies& other) = default;
SiteForCookies::SiteForCookies(SiteForCookies&& other) = default;
SiteForCookies::~SiteForCookies() = default;
SiteForCookies& SiteForCookies::operator=(const SiteForCookies& other) =
default;
SiteForCookies& SiteForCookies::operator=(SiteForCookies&& site_for_cookies) =
default;
bool SiteForCookies::FromWire(const SchemefulSite& site,
bool schemefully_same,
SiteForCookies* out) { … }
SiteForCookies SiteForCookies::FromOrigin(const url::Origin& origin) { … }
SiteForCookies SiteForCookies::FromUrl(const GURL& url) { … }
std::string SiteForCookies::ToDebugString() const { … }
bool SiteForCookies::IsFirstParty(const GURL& url) const { … }
bool SiteForCookies::IsFirstPartyWithSchemefulMode(
const GURL& url,
bool compute_schemefully) const { … }
bool SiteForCookies::IsEquivalent(const SiteForCookies& other) const { … }
bool SiteForCookies::CompareWithFrameTreeSiteAndRevise(
const SchemefulSite& other) { … }
bool SiteForCookies::CompareWithFrameTreeOriginAndRevise(
const url::Origin& other) { … }
GURL SiteForCookies::RepresentativeUrl() const { … }
bool SiteForCookies::IsNull() const { … }
bool SiteForCookies::IsSchemefullyFirstParty(const GURL& url) const { … }
bool SiteForCookies::IsSchemelesslyFirstParty(const GURL& url) const { … }
void SiteForCookies::MarkIfCrossScheme(const SchemefulSite& other) { … }
bool operator<(const SiteForCookies& lhs, const SiteForCookies& rhs) { … }
}