#include "components/content_settings/core/common/content_settings_pattern_parser.h"
#include <stddef.h>
#include <string_view>
#include "base/logging.h"
#include "base/notreached.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_util.h"
#include "url/gurl.h"
#include "url/url_canon.h"
#include "url/url_constants.h"
namespace {
const char kDomainWildcard[] = …;
const size_t kDomainWildcardLength = …;
const char kHostWildcard[] = …;
const char kPathWildcard[] = …;
const char kPortWildcard[] = …;
const char kSchemeWildcard[] = …;
const char kUrlPathSeparator = …;
const char kUrlPortSeparator = …;
const char kUrlPortAndPathSeparator[] = …;
}
namespace content_settings {
void PatternParser::Parse(std::string_view pattern_spec,
ContentSettingsPattern::BuilderInterface* builder) { … }
std::string PatternParser::ToString(
const ContentSettingsPattern::PatternParts& parts) { … }
GURL PatternParser::ToRepresentativeUrl(
const ContentSettingsPattern::PatternParts& parts) { … }
}