| Index: third_party/WebKit/Source/core/fetch/FontResource.h
|
| diff --git a/third_party/WebKit/Source/core/fetch/FontResource.h b/third_party/WebKit/Source/core/fetch/FontResource.h
|
| index 97ea91f2ea76ce92fe8f0dfc61ea812019b653c2..b0f6805206cde8376889a377406f0cf0a5c26353 100644
|
| --- a/third_party/WebKit/Source/core/fetch/FontResource.h
|
| +++ b/third_party/WebKit/Source/core/fetch/FontResource.h
|
| @@ -46,6 +46,8 @@ class CORE_EXPORT FontResource final : public Resource {
|
| public:
|
| using ClientType = FontResourceClient;
|
|
|
| + enum LoadLimitState { UnderLimit, ShortLimitExceeded, LongLimitExceeded };
|
| +
|
| static FontResource* fetch(FetchRequest&, ResourceFetcher*);
|
| ~FontResource() override;
|
|
|
| @@ -67,6 +69,10 @@ class CORE_EXPORT FontResource final : public Resource {
|
| bool italic,
|
| FontOrientation = FontOrientation::Horizontal);
|
|
|
| + LoadLimitState loadLimitState() const { return m_loadLimitState; }
|
| +
|
| + void willReloadAfterDiskCacheMiss() override;
|
| +
|
| private:
|
| class FontResourceFactory : public ResourceFactory {
|
| public:
|
| @@ -84,8 +90,6 @@ class CORE_EXPORT FontResource final : public Resource {
|
| void fontLoadShortLimitCallback(TimerBase*);
|
| void fontLoadLongLimitCallback(TimerBase*);
|
|
|
| - enum LoadLimitState { UnderLimit, ShortLimitExceeded, LongLimitExceeded };
|
| -
|
| std::unique_ptr<FontCustomPlatformData> m_fontData;
|
| String m_otsParsingMessage;
|
| LoadLimitState m_loadLimitState;
|
| @@ -107,6 +111,7 @@ class FontResourceClient : public ResourceClient {
|
| ResourceClientType getResourceClientType() const final { return FontType; }
|
| virtual void fontLoadShortLimitExceeded(FontResource*) {}
|
| virtual void fontLoadLongLimitExceeded(FontResource*) {}
|
| + virtual void willReloadAfterDiskCacheMiss(const FontResource*) {}
|
| };
|
|
|
| } // namespace blink
|
|
|