OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 PPAPI_PROXY_FLASH_FONT_FILE_RESOURCE_H_ | 5 #ifndef PPAPI_PROXY_FLASH_FONT_FILE_RESOURCE_H_ |
6 #define PPAPI_PROXY_FLASH_FONT_FILE_RESOURCE_H_ | 6 #define PPAPI_PROXY_FLASH_FONT_FILE_RESOURCE_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 29 matching lines...) Expand all Loading... |
40 uint32_t* output_length) override; | 40 uint32_t* output_length) override; |
41 | 41 |
42 private: | 42 private: |
43 // Sees if we have a cache of the font table and returns a pointer to it. | 43 // Sees if we have a cache of the font table and returns a pointer to it. |
44 // Returns NULL if we don't have it. | 44 // Returns NULL if we don't have it. |
45 const std::string* GetFontTable(uint32_t table) const; | 45 const std::string* GetFontTable(uint32_t table) const; |
46 | 46 |
47 const std::string* AddFontTable(uint32_t table, const std::string& contents); | 47 const std::string* AddFontTable(uint32_t table, const std::string& contents); |
48 | 48 |
49 using FontTableMap = | 49 using FontTableMap = |
50 base::ScopedPtrHashMap<uint32_t, scoped_ptr<std::string>>; | 50 base::ScopedPtrHashMap<uint32_t, std::unique_ptr<std::string>>; |
51 FontTableMap font_tables_; | 51 FontTableMap font_tables_; |
52 | 52 |
53 SerializedFontDescription description_; | 53 SerializedFontDescription description_; |
54 const PP_PrivateFontCharset charset_; | 54 const PP_PrivateFontCharset charset_; |
55 | 55 |
56 DISALLOW_COPY_AND_ASSIGN(FlashFontFileResource); | 56 DISALLOW_COPY_AND_ASSIGN(FlashFontFileResource); |
57 }; | 57 }; |
58 | 58 |
59 } // namespace proxy | 59 } // namespace proxy |
60 } // namespace ppapi | 60 } // namespace ppapi |
61 | 61 |
62 #endif // PPAPI_PROXY_FLASH_FONT_FILE_RESOURCE_H_ | 62 #endif // PPAPI_PROXY_FLASH_FONT_FILE_RESOURCE_H_ |
OLD | NEW |