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

Side by Side Diff: third_party/WebKit/Source/core/css/RemoteFontFaceSource.h

Issue 2494243003: Set WebFont priority to very low if the network is detected to be slow (Closed)
Patch Set: addressed comments Created 4 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef RemoteFontFaceSource_h 5 #ifndef RemoteFontFaceSource_h
6 #define RemoteFontFaceSource_h 6 #define RemoteFontFaceSource_h
7 7
8 #include "core/css/CSSFontFaceSource.h" 8 #include "core/css/CSSFontFaceSource.h"
9 #include "core/fetch/FontResource.h" 9 #include "core/fetch/FontResource.h"
10 #include "wtf/Allocator.h" 10 #include "wtf/Allocator.h"
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 double m_loadStartTime; 103 double m_loadStartTime;
104 double m_blankPaintTime; 104 double m_blankPaintTime;
105 bool m_isLongLimitExceeded; 105 bool m_isLongLimitExceeded;
106 DataSource m_dataSource; 106 DataSource m_dataSource;
107 FontDisplay m_fontDisplay; 107 FontDisplay m_fontDisplay;
108 }; 108 };
109 109
110 void switchToSwapPeriod(); 110 void switchToSwapPeriod();
111 void switchToFailurePeriod(); 111 void switchToFailurePeriod();
112 bool shouldTriggerWebFontsIntervention(); 112 bool shouldTriggerWebFontsIntervention();
113 bool isLowPriorityLoadingAllowedForRemoteFont() const override;
113 114
114 Member<FontResource> m_font; 115 Member<FontResource> m_font;
115 Member<CSSFontSelector> m_fontSelector; 116 Member<CSSFontSelector> m_fontSelector;
116 const FontDisplay m_display; 117 const FontDisplay m_display;
117 DisplayPeriod m_period; 118 DisplayPeriod m_period;
118 FontLoadHistograms m_histograms; 119 FontLoadHistograms m_histograms;
119 bool m_isInterventionTriggered; 120 bool m_isInterventionTriggered;
120 }; 121 };
121 122
122 } // namespace blink 123 } // namespace blink
123 124
124 #endif 125 #endif
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698