OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 COMPONENTS_FONT_SERVICE_PUBLIC_CPP_FONT_LOADER_H_ | 5 #ifndef COMPONENTS_FONT_SERVICE_PUBLIC_CPP_FONT_LOADER_H_ |
6 #define COMPONENTS_FONT_SERVICE_PUBLIC_CPP_FONT_LOADER_H_ | 6 #define COMPONENTS_FONT_SERVICE_PUBLIC_CPP_FONT_LOADER_H_ |
7 | 7 |
| 8 #include <stdint.h> |
| 9 |
8 #include "base/containers/hash_tables.h" | 10 #include "base/containers/hash_tables.h" |
| 11 #include "base/macros.h" |
9 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
10 #include "base/synchronization/lock.h" | 13 #include "base/synchronization/lock.h" |
11 #include "components/font_service/public/cpp/mapped_font_file.h" | 14 #include "components/font_service/public/cpp/mapped_font_file.h" |
12 #include "components/font_service/public/interfaces/font_service.mojom.h" | 15 #include "components/font_service/public/interfaces/font_service.mojom.h" |
13 #include "third_party/skia/include/core/SkStream.h" | 16 #include "third_party/skia/include/core/SkStream.h" |
14 #include "third_party/skia/include/core/SkTypeface.h" | 17 #include "third_party/skia/include/core/SkTypeface.h" |
15 #include "third_party/skia/include/ports/SkFontConfigInterface.h" | 18 #include "third_party/skia/include/ports/SkFontConfigInterface.h" |
16 | 19 |
17 namespace mojo { | 20 namespace mojo { |
18 class ApplicationImpl; | 21 class ApplicationImpl; |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 | 66 |
64 // Maps font identity ID to the memory-mapped file with font data. | 67 // Maps font identity ID to the memory-mapped file with font data. |
65 base::hash_map<uint32_t, internal::MappedFontFile*> mapped_font_files_; | 68 base::hash_map<uint32_t, internal::MappedFontFile*> mapped_font_files_; |
66 | 69 |
67 DISALLOW_COPY_AND_ASSIGN(FontLoader); | 70 DISALLOW_COPY_AND_ASSIGN(FontLoader); |
68 }; | 71 }; |
69 | 72 |
70 } // namespace font_service | 73 } // namespace font_service |
71 | 74 |
72 #endif // COMPONENTS_FONT_SERVICE_PUBLIC_CPP_FONT_LOADER_H_ | 75 #endif // COMPONENTS_FONT_SERVICE_PUBLIC_CPP_FONT_LOADER_H_ |
OLD | NEW |