#include "tools/privacy_budget/font_indexer/font_indexer.h"
#include <iostream>
#include <vector>
#include "base/functional/bind.h"
#include "base/logging.h"
#include "base/run_loop.h"
#include "content/public/browser/font_list_async.h"
#include "third_party/blink/public/common/privacy_budget/identifiable_token_builder.h"
#include "third_party/blink/renderer/platform/fonts/font_global_context.h"
#include "third_party/blink/renderer/platform/fonts/simple_font_data.h"
#include "third_party/blink/renderer/platform/privacy_budget/identifiability_digest_helpers.h"
#include "third_party/blink/renderer/platform/wtf/hash_set.h"
namespace privacy_budget {
const std::pair<blink::FontSelectionValue, std::string> kFontWeights[] = …;
const std::pair<blink::FontSelectionValue, std::string> kFontWidths[] = …;
const std::pair<blink::FontSelectionValue, std::string> kFontSlopes[] = …;
const std::pair<blink::FontSelectionValue, std::string>
kAdditionalFontSlopes[] = …;
const char kOutputHeader[] = …;
const char kOutputSeparator[] = …;
FontIndexer::FontIndexer() : … { … }
FontIndexer::~FontIndexer() = default;
void FontIndexer::PrintAllFonts() { … }
void FontIndexer::FontListHasLoaded(base::Value::List list) { … }
bool FontIndexer::DoesFontHaveDigest(WTF::AtomicString name,
blink::FontDescription font_description,
int64_t digest) { … }
bool FontIndexer::DoFontsWithNameHaveVaryingWeights(
WTF::AtomicString name,
int64_t default_font_digest) { … }
bool FontIndexer::DoFontsWithNameHaveVaryingWidths(
WTF::AtomicString name,
int64_t default_font_digest) { … }
bool FontIndexer::DoFontsWithNameHaveVaryingSlopes(
WTF::AtomicString name,
int64_t default_font_digest) { … }
void FontIndexer::PrintAllFontsWithName(WTF::AtomicString name) { … }
void FontIndexer::WaitForFontListToLoad() { … }
}