#ifndef LocalFontFaceSource_h
#define LocalFontFaceSource_h
#include "core/css/CSSFontFaceSource.h"
#include "wtf/text/AtomicString.h"
namespace WebCore {
class LocalFontFaceSource : public CSSFontFaceSource {
public:
LocalFontFaceSource(const String& fontName) : m_fontName(fontName) { }
virtual bool isLocal() const { return true; }
virtual bool isLocalFontAvailable(const FontDescription&) OVERRIDE;
private:
virtual PassRefPtr<SimpleFontData> createFontData(const FontDescription&) OVERRIDE;
class LocalFontHistograms {
public:
LocalFontHistograms() : m_reported(false) { }
void record(bool loadSuccess);
private:
bool m_reported;
};
AtomicString m_fontName;
LocalFontHistograms m_histograms;
};
}
#endif