Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Unified Diff: third_party/WebKit/Source/core/css/RemoteFontFaceSource.h

Issue 2453813004: WebFonts cache-aware timeout adaptation (Closed)
Patch Set: simplify by not calling cache miss callback in didAddClient() Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/css/RemoteFontFaceSource.h
diff --git a/third_party/WebKit/Source/core/css/RemoteFontFaceSource.h b/third_party/WebKit/Source/core/css/RemoteFontFaceSource.h
index 12f5f0b56aa4255701b4d547b174a8bd6cb35fe1..113b843cb9da9c448277cff7d55bfbfbef3a62c0 100644
--- a/third_party/WebKit/Source/core/css/RemoteFontFaceSource.h
+++ b/third_party/WebKit/Source/core/css/RemoteFontFaceSource.h
@@ -44,6 +44,9 @@ class RemoteFontFaceSource final : public CSSFontFaceSource,
void notifyFinished(Resource*) override;
void fontLoadShortLimitExceeded(FontResource*) override;
void fontLoadLongLimitExceeded(FontResource*) override;
+
+ void willReloadAfterDiskCacheMiss(const FontResource*) override;
+
String debugName() const override { return "RemoteFontFaceSource"; }
bool isBlank() override { return m_period == BlockPeriod; }
@@ -110,6 +113,7 @@ class RemoteFontFaceSource final : public CSSFontFaceSource,
void switchToSwapPeriod();
void switchToFailurePeriod();
bool shouldTriggerWebFontsIntervention();
+ bool shouldTriggerCacheAwareAdaptation();
Member<FontResource> m_font;
Member<CSSFontSelector> m_fontSelector;

Powered by Google App Engine
This is Rietveld 408576698