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