| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/ppb_pdf_proxy.h" | 5 #include "ppapi/proxy/ppb_pdf_proxy.h" |
| 6 | 6 |
| 7 #include <string.h> // For memcpy. | 7 #include <string.h> // For memcpy. |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 | 10 |
| 11 #include "base/linked_ptr.h" | 11 #include "base/linked_ptr.h" |
| 12 #include "base/logging.h" | 12 #include "base/logging.h" |
| 13 #include "build/build_config.h" | 13 #include "build/build_config.h" |
| 14 #include "ppapi/c/private/ppb_pdf.h" |
| 14 #include "ppapi/proxy/plugin_dispatcher.h" | 15 #include "ppapi/proxy/plugin_dispatcher.h" |
| 15 #include "ppapi/proxy/plugin_resource.h" | 16 #include "ppapi/proxy/plugin_resource.h" |
| 16 #include "ppapi/proxy/ppapi_messages.h" | 17 #include "ppapi/proxy/ppapi_messages.h" |
| 17 #include "webkit/plugins/ppapi/ppb_pdf.h" | |
| 18 | 18 |
| 19 namespace pp { | 19 namespace pp { |
| 20 namespace proxy { | 20 namespace proxy { |
| 21 | 21 |
| 22 class PrivateFontFile : public PluginResource { | 22 class PrivateFontFile : public PluginResource { |
| 23 public: | 23 public: |
| 24 PrivateFontFile() {} | 24 PrivateFontFile() {} |
| 25 virtual ~PrivateFontFile() {} | 25 virtual ~PrivateFontFile() {} |
| 26 | 26 |
| 27 // Resource overrides. | 27 // Resource overrides. |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 font_file, table, NULL, &table_length)) | 159 font_file, table, NULL, &table_length)) |
| 160 return; | 160 return; |
| 161 | 161 |
| 162 result->resize(table_length); | 162 result->resize(table_length); |
| 163 ppb_pdf_target()->GetFontTableForPrivateFontFile(font_file, table, | 163 ppb_pdf_target()->GetFontTableForPrivateFontFile(font_file, table, |
| 164 const_cast<char*>(result->c_str()), &table_length); | 164 const_cast<char*>(result->c_str()), &table_length); |
| 165 } | 165 } |
| 166 | 166 |
| 167 } // namespace proxy | 167 } // namespace proxy |
| 168 } // namespace pp | 168 } // namespace pp |
| OLD | NEW |