#include "content/browser/isolated_origin_util.h"
#include <string>
#include <string_view>
#include "base/logging.h"
#include "base/strings/string_util.h"
#include "net/base/registry_controlled_domains/registry_controlled_domain.h"
#include "services/network/public/cpp/is_potentially_trustworthy.h"
#include "url/gurl.h"
const char* kAllSubdomainsWildcard = …;
namespace content {
IsolatedOriginPattern::IsolatedOriginPattern(std::string_view pattern)
: … { … }
IsolatedOriginPattern::IsolatedOriginPattern(const url::Origin& origin)
: … { … }
IsolatedOriginPattern::~IsolatedOriginPattern() = default;
IsolatedOriginPattern::IsolatedOriginPattern(
const IsolatedOriginPattern& other) = default;
IsolatedOriginPattern& IsolatedOriginPattern::operator=(
const IsolatedOriginPattern& other) = default;
IsolatedOriginPattern::IsolatedOriginPattern(IsolatedOriginPattern&& other) =
default;
IsolatedOriginPattern& IsolatedOriginPattern::operator=(
IsolatedOriginPattern&& other) = default;
bool IsolatedOriginPattern::Parse(const std::string_view& unparsed_pattern) { … }
bool IsolatedOriginUtil::DoesOriginMatchIsolatedOrigin(
const url::Origin& origin,
const url::Origin& isolated_origin) { … }
bool IsolatedOriginUtil::IsValidIsolatedOrigin(const url::Origin& origin) { … }
bool IsolatedOriginUtil::IsValidOriginForOptInIsolation(
const url::Origin& origin) { … }
bool IsolatedOriginUtil::IsValidOriginForOptOutIsolation(
const url::Origin& origin) { … }
bool IsolatedOriginUtil::IsValidIsolatedOriginImpl(
const url::Origin& origin,
bool is_legacy_isolated_origin_check) { … }
}