OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 MockFontResourceClient_h | 5 #ifndef MockFontResourceClient_h |
6 #define MockFontResourceClient_h | 6 #define MockFontResourceClient_h |
7 | 7 |
8 #include "core/fetch/Resource.h" | |
9 #include "core/fetch/ResourceClient.h" | |
10 #include "core/loader/resource/FontResource.h" | 8 #include "core/loader/resource/FontResource.h" |
11 #include "platform/heap/Handle.h" | 9 #include "platform/heap/Handle.h" |
| 10 #include "platform/loader/fetch/Resource.h" |
| 11 #include "platform/loader/fetch/ResourceClient.h" |
12 | 12 |
13 namespace blink { | 13 namespace blink { |
14 | 14 |
15 class MockFontResourceClient final | 15 class MockFontResourceClient final |
16 : public GarbageCollectedFinalized<MockFontResourceClient>, | 16 : public GarbageCollectedFinalized<MockFontResourceClient>, |
17 public FontResourceClient { | 17 public FontResourceClient { |
18 USING_PRE_FINALIZER(MockFontResourceClient, dispose); | 18 USING_PRE_FINALIZER(MockFontResourceClient, dispose); |
19 USING_GARBAGE_COLLECTED_MIXIN(MockFontResourceClient); | 19 USING_GARBAGE_COLLECTED_MIXIN(MockFontResourceClient); |
20 | 20 |
21 public: | 21 public: |
(...skipping 22 matching lines...) Expand all Loading... |
44 void dispose(); | 44 void dispose(); |
45 | 45 |
46 Member<Resource> m_resource; | 46 Member<Resource> m_resource; |
47 bool m_fontLoadShortLimitExceededCalled; | 47 bool m_fontLoadShortLimitExceededCalled; |
48 bool m_fontLoadLongLimitExceededCalled; | 48 bool m_fontLoadLongLimitExceededCalled; |
49 }; | 49 }; |
50 | 50 |
51 } // namespace blink | 51 } // namespace blink |
52 | 52 |
53 #endif // MockFontResourceClient_h | 53 #endif // MockFontResourceClient_h |
OLD | NEW |