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

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

Issue 2443883003: WebFonts intervention: understand if download time matches the decision (Closed)
Patch Set: remove TODO 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 3a98d02eec0059f7eeced4e264d537abd60e2bbe..12f5f0b56aa4255701b4d547b174a8bd6cb35fe1 100644
--- a/third_party/WebKit/Source/core/css/RemoteFontFaceSource.h
+++ b/third_party/WebKit/Source/core/css/RemoteFontFaceSource.h
@@ -89,13 +89,15 @@ class RemoteFontFaceSource final : public CSSFontFaceSource,
bool isInterventionTriggered);
void longLimitExceeded(bool isInterventionTriggered);
void recordFallbackTime(const FontResource*);
- void recordRemoteFont(const FontResource*);
+ void recordRemoteFont(const FontResource*, bool isInterventionTriggered);
bool hadBlankText() { return m_blankPaintTime; }
DataSource dataSource() { return m_dataSource; }
void maySetDataSource(DataSource);
private:
- void recordLoadTimeHistogram(const FontResource*, int duration);
+ void recordLoadTimeHistogram(const FontResource*,
+ int duration,
+ bool isInterventionTriggered);
void recordInterventionResult(bool isTriggered);
CacheHitMetrics dataSourceMetricsValue();
double m_loadStartTime;
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp » ('j') | tools/metrics/histograms/histograms.xml » ('J')

Powered by Google App Engine
This is Rietveld 408576698