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

Side by Side Diff: Source/core/css/BinaryDataFontFaceSource.h

Issue 983973004: Provide user friendly messages for OTS parsing of fonts (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase patch Created 5 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 | « LayoutTests/TestExpectations ('k') | Source/core/css/BinaryDataFontFaceSource.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 BinaryDataFontFaceSource_h 5 #ifndef BinaryDataFontFaceSource_h
6 #define BinaryDataFontFaceSource_h 6 #define BinaryDataFontFaceSource_h
7 7
8 #include "core/css/CSSFontFaceSource.h" 8 #include "core/css/CSSFontFaceSource.h"
9 #include "wtf/OwnPtr.h" 9 #include "wtf/OwnPtr.h"
10 10
11 namespace blink { 11 namespace blink {
12 12
13 class FontCustomPlatformData; 13 class FontCustomPlatformData;
14 class SharedBuffer; 14 class SharedBuffer;
15 15
16 class BinaryDataFontFaceSource final : public CSSFontFaceSource { 16 class BinaryDataFontFaceSource final : public CSSFontFaceSource {
17 public: 17 public:
18 explicit BinaryDataFontFaceSource(SharedBuffer*); 18 explicit BinaryDataFontFaceSource(SharedBuffer*, String&);
19 virtual ~BinaryDataFontFaceSource(); 19 virtual ~BinaryDataFontFaceSource();
20 virtual bool isValid() const override; 20 virtual bool isValid() const override;
21 21
22 private: 22 private:
23 virtual PassRefPtr<SimpleFontData> createFontData(const FontDescription&) ov erride; 23 virtual PassRefPtr<SimpleFontData> createFontData(const FontDescription&) ov erride;
24 24
25 OwnPtr<FontCustomPlatformData> m_customPlatformData; 25 OwnPtr<FontCustomPlatformData> m_customPlatformData;
26 }; 26 };
27 27
28 } // namespace blink 28 } // namespace blink
29 29
30 #endif 30 #endif
OLDNEW
« no previous file with comments | « LayoutTests/TestExpectations ('k') | Source/core/css/BinaryDataFontFaceSource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698