Home | History | Annotate | Download | only in css
      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.
      4 
      5 #ifndef BinaryDataFontFaceSource_h
      6 #define BinaryDataFontFaceSource_h
      7 
      8 #include "core/css/CSSFontFaceSource.h"
      9 #include "wtf/OwnPtr.h"
     10 
     11 namespace blink {
     12 
     13 class FontCustomPlatformData;
     14 class SharedBuffer;
     15 
     16 class BinaryDataFontFaceSource FINAL : public CSSFontFaceSource {
     17 public:
     18     explicit BinaryDataFontFaceSource(SharedBuffer*);
     19     virtual ~BinaryDataFontFaceSource();
     20     virtual bool isValid() const OVERRIDE;
     21 
     22 private:
     23     virtual PassRefPtr<SimpleFontData> createFontData(const FontDescription&) OVERRIDE;
     24 
     25     OwnPtr<FontCustomPlatformData> m_customPlatformData;
     26 };
     27 
     28 } // namespace blink
     29 
     30 #endif
     31