#include "components/favicon_base/favicon_url_parser.h"
#include <string_view>
#include "base/notreached.h"
#include "base/strings/string_number_conversions.h"
#include "components/favicon_base/favicon_types.h"
#include "net/base/url_util.h"
#include "ui/base/webui/web_ui_util.h"
#include "ui/gfx/favicon_size.h"
namespace chrome {
namespace {
bool HasSubstringAt(const std::string& path,
size_t start_index,
const std::string& search) { … }
bool StringToPositiveInt(std::string_view input, int* output) { … }
bool ParseFaviconPathWithLegacyFormat(const std::string& path,
chrome::ParsedFaviconPath* parsed) { … }
bool ParseFaviconPathWithFavicon2Format(const std::string& path,
chrome::ParsedFaviconPath* parsed) { … }
}
ParsedFaviconPath::ParsedFaviconPath() = default;
ParsedFaviconPath::ParsedFaviconPath(const ParsedFaviconPath& other) = default;
ParsedFaviconPath& ParsedFaviconPath::operator=(
const ParsedFaviconPath& other) = default;
bool ParseFaviconPath(const std::string& path,
FaviconUrlFormat format,
ParsedFaviconPath* parsed) { … }
}