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 CONTENT_COMMON_DWRITE_FONT_PLATFORM_WIN_H_ | 5 #ifndef CONTENT_PUBLIC_COMMON_DWRITE_FONT_PLATFORM_WIN_H_ |
6 #define CONTENT_COMMON_DWRITE_FONT_PLATFORM_WIN_H_ | 6 #define CONTENT_PUBLIC_COMMON_DWRITE_FONT_PLATFORM_WIN_H_ |
7 | 7 |
8 #include "base/files/file.h" | 8 #include "base/files/file.h" |
9 #include "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
10 | 10 |
11 struct IDWriteFactory; | 11 struct IDWriteFactory; |
12 struct IDWriteFontCollection; | 12 struct IDWriteFontCollection; |
13 | 13 |
14 namespace content { | 14 namespace content { |
15 | 15 |
16 // This is the shared section that is used between browser and renderer for | 16 // This is the shared section that is used between browser and renderer for |
(...skipping 14 matching lines...) Expand all Loading... |
31 // Loads font cache from file. This is supposed to be used from browser | 31 // Loads font cache from file. This is supposed to be used from browser |
32 // side where loading means creating readonly shared memory file mapping so that | 32 // side where loading means creating readonly shared memory file mapping so that |
33 // renderers can read from it. | 33 // renderers can read from it. |
34 CONTENT_EXPORT bool LoadFontCache(const base::FilePath& path); | 34 CONTENT_EXPORT bool LoadFontCache(const base::FilePath& path); |
35 | 35 |
36 // Added in header mainly for unittest | 36 // Added in header mainly for unittest |
37 CONTENT_EXPORT bool ValidateFontCacheFile(base::File* file); | 37 CONTENT_EXPORT bool ValidateFontCacheFile(base::File* file); |
38 | 38 |
39 } // namespace content | 39 } // namespace content |
40 | 40 |
41 #endif // CONTENT_COMMON_DWRITE_FONT_PLATFORM_WIN_H_ | 41 #endif // CONTENT_PUBLIC_COMMON_DWRITE_FONT_PLATFORM_WIN_H_ |
OLD | NEW |