Index: chrome/browser/printing/print_view_manager_base.h |
diff --git a/chrome/browser/printing/print_view_manager_base.h b/chrome/browser/printing/print_view_manager_base.h |
index bd627a2706b7ab7618b9d703f5a2654fc1dfb5c6..ef48ed5c9e1fa53db38c04a92fcd3fdb065c372b 100644 |
--- a/chrome/browser/printing/print_view_manager_base.h |
+++ b/chrome/browser/printing/print_view_manager_base.h |
@@ -23,6 +23,7 @@ class RenderViewHost; |
namespace printing { |
class JobEventDetails; |
+class PdfToEmfConverter; |
class PrintJob; |
class PrintJobWorkerOwner; |
class PrintQueriesQueue; |
@@ -130,6 +131,13 @@ class PrintViewManagerBase : public content::NotificationObserver, |
// Release the PrinterQuery associated with our |cookie_|. |
void ReleasePrinterQuery(); |
+#if defined(WIN_PDF_METAFILE_FOR_PRINTING) |
+ // Called on completion of converting the pdf to emf. |
+ void OnPdfToEmfConverted(const PrintHostMsg_DidPrintPage_Params& params, |
+ double scale_factor, |
+ const std::vector<base::FilePath>& emf_file); |
+#endif |
+ |
content::NotificationRegistrar registrar_; |
// Manages the low-level talk to the printer. |
@@ -146,11 +154,16 @@ class PrintViewManagerBase : public content::NotificationObserver, |
// print settings are being loaded. |
bool inside_inner_message_loop_; |
-#if defined(OS_POSIX) && !defined(OS_MACOSX) |
+#if (defined(OS_POSIX) && !defined(OS_MACOSX)) || \ |
+ defined(WIN_PDF_METAFILE_FOR_PRINTING) |
// Set to true when OnDidPrintPage() should be expecting the first page. |
bool expecting_first_page_; |
#endif |
+#if defined(WIN_PDF_METAFILE_FOR_PRINTING) |
+ scoped_ptr<PdfToEmfConverter> pdf_to_emf_converter_; |
+#endif |
+ |
// The document cookie of the current PrinterQuery. |
int cookie_; |