| 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 "chrome/renderer/pepper/pepper_flash_renderer_host.h" | 5 #include "chrome/renderer/pepper/pepper_flash_renderer_host.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include <map> | 9 #include <map> |
| 8 #include <vector> | 10 #include <vector> |
| 9 | 11 |
| 10 #include "base/lazy_instance.h" | 12 #include "base/lazy_instance.h" |
| 13 #include "base/macros.h" |
| 11 #include "base/metrics/histogram.h" | 14 #include "base/metrics/histogram.h" |
| 12 #include "base/strings/string_util.h" | 15 #include "base/strings/string_util.h" |
| 13 #include "components/pdf/renderer/pepper_pdf_host.h" | 16 #include "components/pdf/renderer/pepper_pdf_host.h" |
| 14 #include "content/public/renderer/pepper_plugin_instance.h" | 17 #include "content/public/renderer/pepper_plugin_instance.h" |
| 15 #include "content/public/renderer/render_thread.h" | 18 #include "content/public/renderer/render_thread.h" |
| 16 #include "content/public/renderer/renderer_ppapi_host.h" | 19 #include "content/public/renderer/renderer_ppapi_host.h" |
| 17 #include "ipc/ipc_message_macros.h" | 20 #include "ipc/ipc_message_macros.h" |
| 18 #include "net/http/http_util.h" | 21 #include "net/http/http_util.h" |
| 19 #include "ppapi/c/pp_errors.h" | 22 #include "ppapi/c/pp_errors.h" |
| 20 #include "ppapi/c/trusted/ppb_browser_font_trusted.h" | 23 #include "ppapi/c/trusted/ppb_browser_font_trusted.h" |
| (...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 370 rect.point.x, rect.point.y, rect.size.width, rect.size.height))) | 373 rect.point.x, rect.point.y, rect.size.width, rect.size.height))) |
| 371 return PP_OK; | 374 return PP_OK; |
| 372 return PP_ERROR_FAILED; | 375 return PP_ERROR_FAILED; |
| 373 } | 376 } |
| 374 | 377 |
| 375 int32_t PepperFlashRendererHost::OnInvokePrinting( | 378 int32_t PepperFlashRendererHost::OnInvokePrinting( |
| 376 ppapi::host::HostMessageContext* host_context) { | 379 ppapi::host::HostMessageContext* host_context) { |
| 377 pdf::PepperPDFHost::InvokePrintingForInstance(pp_instance()); | 380 pdf::PepperPDFHost::InvokePrintingForInstance(pp_instance()); |
| 378 return PP_OK; | 381 return PP_OK; |
| 379 } | 382 } |
| OLD | NEW |