#include "components/url_formatter/spoof_checks/top_domains/top_domain_state_generator.h"
#include <cstdint>
#include <memory>
#include <string>
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_util.h"
#include "base/strings/stringprintf.h"
#include "net/tools/huffman_trie/huffman/huffman_builder.h"
#include "net/tools/huffman_trie/trie/trie_bit_buffer.h"
#include "net/tools/huffman_trie/trie/trie_writer.h"
HuffmanBuilder;
HuffmanRepresentationTable;
TrieWriter;
namespace url_formatter {
namespace top_domains {
namespace {
static const char kNewLine[] = …;
static const char kIndent[] = …;
bool ReplaceTag(const std::string& name,
const std::string& value,
std::string* tpl) { … }
std::string FormatVectorAsArray(const std::vector<uint8_t>& bytes) { … }
HuffmanRepresentationTable ApproximateHuffman(const TopDomainEntries& entries) { … }
}
TopDomainStateGenerator::TopDomainStateGenerator() = default;
TopDomainStateGenerator::~TopDomainStateGenerator() = default;
std::string TopDomainStateGenerator::Generate(
const std::string& preload_template,
const TopDomainEntries& entries) { … }
}
}