| 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 26 matching lines...) Expand all Loading... |
| 37 bool isLoading() const override; | 37 bool isLoading() const override; |
| 38 bool isLoaded() const override; | 38 bool isLoaded() const override; |
| 39 bool isValid() const override; | 39 bool isValid() const override; |
| 40 DisplayPeriod getDisplayPeriod() const { return m_period; } | 40 DisplayPeriod getDisplayPeriod() const { return m_period; } |
| 41 | 41 |
| 42 void beginLoadIfNeeded() override; | 42 void beginLoadIfNeeded() override; |
| 43 | 43 |
| 44 void notifyFinished(Resource*) override; | 44 void notifyFinished(Resource*) override; |
| 45 void fontLoadShortLimitExceeded(FontResource*) override; | 45 void fontLoadShortLimitExceeded(FontResource*) override; |
| 46 void fontLoadLongLimitExceeded(FontResource*) override; | 46 void fontLoadLongLimitExceeded(FontResource*) override; |
| 47 |
| 48 void willReloadAfterDiskCacheMiss(const FontResource*) override; |
| 49 |
| 47 String debugName() const override { return "RemoteFontFaceSource"; } | 50 String debugName() const override { return "RemoteFontFaceSource"; } |
| 48 | 51 |
| 49 bool isBlank() override { return m_period == BlockPeriod; } | 52 bool isBlank() override { return m_period == BlockPeriod; } |
| 50 | 53 |
| 51 // For UMA reporting | 54 // For UMA reporting |
| 52 bool hadBlankText() override { return m_histograms.hadBlankText(); } | 55 bool hadBlankText() override { return m_histograms.hadBlankText(); } |
| 53 void paintRequested() { m_histograms.fallbackFontPainted(m_period); } | 56 void paintRequested() { m_histograms.fallbackFontPainted(m_period); } |
| 54 | 57 |
| 55 DECLARE_VIRTUAL_TRACE(); | 58 DECLARE_VIRTUAL_TRACE(); |
| 56 | 59 |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 Member<CSSFontSelector> m_fontSelector; | 112 Member<CSSFontSelector> m_fontSelector; |
| 110 const FontDisplay m_display; | 113 const FontDisplay m_display; |
| 111 DisplayPeriod m_period; | 114 DisplayPeriod m_period; |
| 112 FontLoadHistograms m_histograms; | 115 FontLoadHistograms m_histograms; |
| 113 bool m_isInterventionTriggered; | 116 bool m_isInterventionTriggered; |
| 114 }; | 117 }; |
| 115 | 118 |
| 116 } // namespace blink | 119 } // namespace blink |
| 117 | 120 |
| 118 #endif | 121 #endif |
| OLD | NEW |