| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "pdf/pdf.h" | 5 #include "pdf/pdf.h" |
| 6 | 6 |
| 7 #include <stdint.h> |
| 8 |
| 7 #if defined(OS_WIN) | 9 #if defined(OS_WIN) |
| 8 #include <windows.h> | 10 #include <windows.h> |
| 9 #endif | 11 #endif |
| 10 | 12 |
| 11 #include "base/command_line.h" | 13 #include "base/command_line.h" |
| 12 #include "base/logging.h" | 14 #include "base/logging.h" |
| 13 #include "pdf/out_of_process_instance.h" | 15 #include "pdf/out_of_process_instance.h" |
| 14 #include "ppapi/c/ppp.h" | 16 #include "ppapi/c/ppp.h" |
| 15 #include "ppapi/cpp/private/internal_module.h" | 17 #include "ppapi/cpp/private/internal_module.h" |
| 16 #include "ppapi/cpp/private/pdf.h" | 18 #include "ppapi/cpp/private/pdf.h" |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 autorotate); | 173 autorotate); |
| 172 bool ret = engine_exports->RenderPDFPageToBitmap( | 174 bool ret = engine_exports->RenderPDFPageToBitmap( |
| 173 pdf_buffer, pdf_buffer_size, page_number, settings, bitmap_buffer); | 175 pdf_buffer, pdf_buffer_size, page_number, settings, bitmap_buffer); |
| 174 if (!g_sdk_initialized_via_pepper) { | 176 if (!g_sdk_initialized_via_pepper) { |
| 175 chrome_pdf::ShutdownSDK(); | 177 chrome_pdf::ShutdownSDK(); |
| 176 } | 178 } |
| 177 return ret; | 179 return ret; |
| 178 } | 180 } |
| 179 | 181 |
| 180 } // namespace chrome_pdf | 182 } // namespace chrome_pdf |
| OLD | NEW |