chromium/third_party/blink/renderer/modules/font_access/font_metadata.cc

// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "third_party/blink/renderer/modules/font_access/font_metadata.h"

#include <memory>
#include <utility>

#include "base/metrics/histogram_functions.h"
#include "base/numerics/safe_conversions.h"
#include "build/build_config.h"
#include "third_party/blink/renderer/bindings/core/v8/script_promise_resolver.h"
#include "third_party/blink/renderer/core/fileapi/blob.h"
#include "third_party/blink/renderer/platform/bindings/script_state.h"
#include "third_party/blink/renderer/platform/fonts/font_cache.h"
#include "third_party/blink/renderer/platform/fonts/font_global_context.h"
#include "third_party/blink/renderer/platform/fonts/font_unique_name_lookup.h"
#include "third_party/blink/renderer/platform/scheduler/public/thread.h"
#include "third_party/skia/include/core/SkStream.h"
#include "third_party/skia/include/core/SkTypes.h"

namespace blink {

namespace {

// Sets up internal FontUniqueLookup data that will allow matching unique names,
// on platforms that apply.
void SetUpFontUniqueLookupIfNecessary() {}

}  // namespace

FontMetadata::FontMetadata(const FontEnumerationEntry& entry)
    :{}

FontMetadata* FontMetadata::Create(const FontEnumerationEntry& entry) {}

ScriptPromise<Blob> FontMetadata::blob(ScriptState* script_state) {}

void FontMetadata::Trace(blink::Visitor* visitor) const {}

// static
void FontMetadata::BlobImpl(ScriptPromiseResolver<Blob>* resolver,
                            const String& postscriptName) {}

}  // namespace blink