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

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

Issue 2014533002: Move FontResourceClient to Oilpan heap (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months 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"
11 11
12 namespace blink { 12 namespace blink {
13 13
14 class CSSFontSelector; 14 class CSSFontSelector;
15 15
16 enum FontDisplay { 16 enum FontDisplay {
17 FontDisplayAuto, 17 FontDisplayAuto,
18 FontDisplayBlock, 18 FontDisplayBlock,
19 FontDisplaySwap, 19 FontDisplaySwap,
20 FontDisplayFallback, 20 FontDisplayFallback,
21 FontDisplayOptional, 21 FontDisplayOptional,
22 FontDisplayEnumMax 22 FontDisplayEnumMax
23 }; 23 };
24 24
25 class RemoteFontFaceSource final : public CSSFontFaceSource, public FontResource Client { 25 class RemoteFontFaceSource final : public CSSFontFaceSource, public FontResource Client {
26 USING_PRE_FINALIZER(RemoteFontFaceSource, dispose); 26 USING_PRE_FINALIZER(RemoteFontFaceSource, dispose);
27 USING_GARBAGE_COLLECTED_MIXIN(RemoteFontFaceSource);
27 public: 28 public:
28 enum DisplayPeriod { BlockPeriod, SwapPeriod, FailurePeriod }; 29 enum DisplayPeriod { BlockPeriod, SwapPeriod, FailurePeriod };
29 30
30 explicit RemoteFontFaceSource(FontResource*, CSSFontSelector*, FontDisplay); 31 explicit RemoteFontFaceSource(FontResource*, CSSFontSelector*, FontDisplay);
31 ~RemoteFontFaceSource() override; 32 ~RemoteFontFaceSource() override;
32 void dispose(); 33 void dispose();
33 34
34 bool isLoading() const override; 35 bool isLoading() const override;
35 bool isLoaded() const override; 36 bool isLoaded() const override;
36 bool isValid() const override; 37 bool isValid() const override;
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 Member<CSSFontSelector> m_fontSelector; 84 Member<CSSFontSelector> m_fontSelector;
84 const FontDisplay m_display; 85 const FontDisplay m_display;
85 DisplayPeriod m_period; 86 DisplayPeriod m_period;
86 FontLoadHistograms m_histograms; 87 FontLoadHistograms m_histograms;
87 bool m_isInterventionTriggered; 88 bool m_isInterventionTriggered;
88 }; 89 };
89 90
90 } // namespace blink 91 } // namespace blink
91 92
92 #endif 93 #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