1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef BinaryDataFontFaceSource_h
6 #define BinaryDataFontFaceSource_h
8 #include "core/css/CSSFontFaceSource.h"
9 #include "wtf/OwnPtr.h"
13 class FontCustomPlatformData;
16 class BinaryDataFontFaceSource final : public CSSFontFaceSource {
18 explicit BinaryDataFontFaceSource(SharedBuffer*);
19 virtual ~BinaryDataFontFaceSource();
20 virtual bool isValid() const override;
23 virtual PassRefPtr<SimpleFontData> createFontData(const FontDescription&) override;
25 OwnPtr<FontCustomPlatformData> m_customPlatformData;