| 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 Member<CSSFontSelector> m_fontSelector; | 116 Member<CSSFontSelector> m_fontSelector; |
| 114 const FontDisplay m_display; | 117 const FontDisplay m_display; |
| 115 DisplayPeriod m_period; | 118 DisplayPeriod m_period; |
| 116 FontLoadHistograms m_histograms; | 119 FontLoadHistograms m_histograms; |
| 117 bool m_isInterventionTriggered; | 120 bool m_isInterventionTriggered; |
| 118 }; | 121 }; |
| 119 | 122 |
| 120 } // namespace blink | 123 } // namespace blink |
| 121 | 124 |
| 122 #endif | 125 #endif |
| OLD | NEW |