| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |