#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "content/browser/font_access/font_enumeration_data_source_linux.h"
#include <fontconfig/fontconfig.h>
#include <memory>
#include "base/check_op.h"
#include "base/location.h"
#include "base/notreached.h"
#include "base/sequence_checker.h"
#include "base/task/sequenced_task_runner.h"
#include "base/task/task_traits.h"
#include "base/task/thread_pool.h"
#include "base/threading/scoped_blocking_call.h"
#include "third_party/blink/public/common/font_access/font_enumeration_table.pb.h"
namespace content {
namespace {
std::unique_ptr<FcPattern, decltype(&FcPatternDestroy)> CreateFormatPattern(
const char* format) { … }
FcFontSet* ListFonts(FcObjectSet* object_set) { … }
}
FontEnumerationDataSourceLinux::FontEnumerationDataSourceLinux() { … }
FontEnumerationDataSourceLinux::~FontEnumerationDataSourceLinux() { … }
blink::FontEnumerationTable FontEnumerationDataSourceLinux::GetFonts(
const std::string& locale) { … }
}