| 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 "sky/engine/core/css/CSSFontFaceSource.h" |
| 9 #include "core/fetch/FontResource.h" | 9 #include "sky/engine/core/fetch/FontResource.h" |
| 10 #include "core/fetch/ResourcePtr.h" | 10 #include "sky/engine/core/fetch/ResourcePtr.h" |
| 11 | 11 |
| 12 namespace blink { | 12 namespace blink { |
| 13 | 13 |
| 14 class FontLoader; | 14 class FontLoader; |
| 15 | 15 |
| 16 class RemoteFontFaceSource : public CSSFontFaceSource, public FontResourceClient
{ | 16 class RemoteFontFaceSource : public CSSFontFaceSource, public FontResourceClient
{ |
| 17 public: | 17 public: |
| 18 explicit RemoteFontFaceSource(FontResource*, PassRefPtr<FontLoader>); | 18 explicit RemoteFontFaceSource(FontResource*, PassRefPtr<FontLoader>); |
| 19 virtual ~RemoteFontFaceSource(); | 19 virtual ~RemoteFontFaceSource(); |
| 20 | 20 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 }; | 55 }; |
| 56 | 56 |
| 57 ResourcePtr<FontResource> m_font; | 57 ResourcePtr<FontResource> m_font; |
| 58 RefPtr<FontLoader> m_fontLoader; | 58 RefPtr<FontLoader> m_fontLoader; |
| 59 FontLoadHistograms m_histograms; | 59 FontLoadHistograms m_histograms; |
| 60 }; | 60 }; |
| 61 | 61 |
| 62 } // namespace blink | 62 } // namespace blink |
| 63 | 63 |
| 64 #endif | 64 #endif |
| OLD | NEW |