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 #include "ppapi/proxy/flash_font_file_resource.h" | 5 #include "ppapi/proxy/flash_font_file_resource.h" |
6 | 6 |
7 #include <cstring> | 7 #include <cstring> |
8 | 8 |
9 #include "ppapi/c/dev/ppb_font_dev.h" | |
10 #include "ppapi/c/pp_errors.h" | 9 #include "ppapi/c/pp_errors.h" |
11 #include "ppapi/proxy/ppapi_messages.h" | 10 #include "ppapi/proxy/ppapi_messages.h" |
12 | 11 |
13 namespace ppapi { | 12 namespace ppapi { |
14 namespace proxy { | 13 namespace proxy { |
15 | 14 |
16 FlashFontFileResource::FlashFontFileResource( | 15 FlashFontFileResource::FlashFontFileResource( |
17 Connection connection, | 16 Connection connection, |
18 PP_Instance instance, | 17 PP_Instance instance, |
19 const PP_BrowserFont_Trusted_Description* description, | 18 const PP_BrowserFont_Trusted_Description* description, |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 const std::string* FlashFontFileResource::AddFontTable( | 71 const std::string* FlashFontFileResource::AddFontTable( |
73 uint32_t table, | 72 uint32_t table, |
74 const std::string& contents) { | 73 const std::string& contents) { |
75 FontTableMap::const_iterator it = | 74 FontTableMap::const_iterator it = |
76 font_tables_.set(table, make_scoped_ptr(new std::string(contents))); | 75 font_tables_.set(table, make_scoped_ptr(new std::string(contents))); |
77 return it->second; | 76 return it->second; |
78 } | 77 } |
79 | 78 |
80 } // namespace proxy | 79 } // namespace proxy |
81 } // namespace ppapi | 80 } // namespace ppapi |
OLD | NEW |