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 fb76fee8c0b7fca48575fa6c930769f05f8be3b1..14fc850638a0e054bb4b17e88f779ff78f7ce617 100644 |
--- a/third_party/WebKit/Source/core/css/RemoteFontFaceSource.h |
+++ b/third_party/WebKit/Source/core/css/RemoteFontFaceSource.h |
@@ -76,15 +76,20 @@ class RemoteFontFaceSource final : public CSSFontFaceSource, |
FromNetwork |
}; |
- FontLoadHistograms(DataSource dataSource) |
+ FontLoadHistograms(DataSource dataSource, FontDisplay fontDisplay) |
: m_loadStartTime(0), |
m_blankPaintTime(0), |
m_isLongLimitExceeded(false), |
- m_dataSource(dataSource) {} |
+ m_dataSource(dataSource), |
+ m_fontDisplay(fontDisplay) {} |
void loadStarted(); |
void fallbackFontPainted(DisplayPeriod); |
- void fontLoaded(bool isInterventionTriggered); |
- void longLimitExceeded(bool isInterventionTriggered); |
+ void fontLoaded(bool isCorsFailed, |
+ bool loadError, |
+ bool isInterventionTriggered); |
+ void longLimitExceeded(bool isCorsFailed, |
+ bool loadError, |
+ bool isInterventionTriggered); |
void recordFallbackTime(const FontResource*); |
void recordRemoteFont(const FontResource*); |
bool hadBlankText() { return m_blankPaintTime; } |
@@ -93,12 +98,15 @@ class RemoteFontFaceSource final : public CSSFontFaceSource, |
private: |
void recordLoadTimeHistogram(const FontResource*, int duration); |
- void recordInterventionResult(bool isTriggered); |
+ void recordInterventionResult(bool isCorsFailed, |
+ bool loadError, |
+ bool isTriggered); |
CacheHitMetrics dataSourceMetricsValue(); |
double m_loadStartTime; |
double m_blankPaintTime; |
bool m_isLongLimitExceeded; |
DataSource m_dataSource; |
+ FontDisplay m_fontDisplay; |
}; |
void switchToSwapPeriod(); |