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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 PassRefPtr<SimpleFontData> createFontData(const FontDescription&) override; | 58 PassRefPtr<SimpleFontData> createFontData(const FontDescription&) override; |
59 PassRefPtr<SimpleFontData> createLoadingFallbackFontData( | 59 PassRefPtr<SimpleFontData> createLoadingFallbackFontData( |
60 const FontDescription&); | 60 const FontDescription&); |
61 void pruneTable(); | 61 void pruneTable(); |
62 | 62 |
63 private: | 63 private: |
64 class FontLoadHistograms { | 64 class FontLoadHistograms { |
65 DISALLOW_NEW(); | 65 DISALLOW_NEW(); |
66 | 66 |
67 public: | 67 public: |
68 // Should not change following order in CacheHitMetrics to be used for metri
cs values. | 68 // Should not change following order in CacheHitMetrics to be used for |
| 69 // metrics values. |
69 enum CacheHitMetrics { Miss, DiskHit, DataUrl, MemoryHit, CacheHitEnumMax }; | 70 enum CacheHitMetrics { Miss, DiskHit, DataUrl, MemoryHit, CacheHitEnumMax }; |
70 enum DataSource { | 71 enum DataSource { |
71 FromUnknown, | 72 FromUnknown, |
72 FromDataURL, | 73 FromDataURL, |
73 FromMemoryCache, | 74 FromMemoryCache, |
74 FromDiskCache, | 75 FromDiskCache, |
75 FromNetwork | 76 FromNetwork |
76 }; | 77 }; |
77 | 78 |
78 FontLoadHistograms(DataSource dataSource) | 79 FontLoadHistograms(DataSource dataSource) |
(...skipping 29 matching lines...) Expand all Loading... |
108 Member<CSSFontSelector> m_fontSelector; | 109 Member<CSSFontSelector> m_fontSelector; |
109 const FontDisplay m_display; | 110 const FontDisplay m_display; |
110 DisplayPeriod m_period; | 111 DisplayPeriod m_period; |
111 FontLoadHistograms m_histograms; | 112 FontLoadHistograms m_histograms; |
112 bool m_isInterventionTriggered; | 113 bool m_isInterventionTriggered; |
113 }; | 114 }; |
114 | 115 |
115 } // namespace blink | 116 } // namespace blink |
116 | 117 |
117 #endif | 118 #endif |
OLD | NEW |