| Index: chrome/browser/printing/print_job.h
|
| diff --git a/chrome/browser/printing/print_job.h b/chrome/browser/printing/print_job.h
|
| index fe1c1e4d97166db11ad6898311f417c49af744d7..fa2498bfce39488e9c9bd050b273f87c86542c11 100644
|
| --- a/chrome/browser/printing/print_job.h
|
| +++ b/chrome/browser/printing/print_job.h
|
| @@ -15,15 +15,19 @@
|
|
|
| class Thread;
|
|
|
| +namespace base {
|
| +class RefCountedMemory;
|
| +}
|
| +
|
| namespace printing {
|
|
|
| -// See definition below.
|
| class JobEventDetails;
|
| -
|
| +class MetafilePlayer;
|
| +class PdfToEmfConverter;
|
| +class PrintJobWorker;
|
| class PrintedDocument;
|
| class PrintedPage;
|
| class PrintedPagesSource;
|
| -class PrintJobWorker;
|
| class PrinterQuery;
|
|
|
| // Manages the print work for a specific document. Talks to the printer through
|
| @@ -86,6 +90,13 @@ class PrintJob : public PrintJobWorkerOwner,
|
| // Access the current printed document. Warning: may be NULL.
|
| PrintedDocument* document() const;
|
|
|
| +#if defined(OS_WIN)
|
| + void StartPdfToEmfConversion(
|
| + const scoped_refptr<base::RefCountedMemory>& bytes,
|
| + const gfx::Size& page_size,
|
| + const gfx::Rect& content_area);
|
| +#endif // OS_WIN
|
| +
|
| protected:
|
| virtual ~PrintJob();
|
|
|
| @@ -109,6 +120,13 @@ class PrintJob : public PrintJobWorkerOwner,
|
|
|
| void HoldUntilStopIsCalled();
|
|
|
| +#if defined(OS_WIN)
|
| + void OnPdfToEmfStarted(int page_count);
|
| + void OnPdfToEmfPageConverted(int page_number,
|
| + double scale_factor,
|
| + scoped_ptr<MetafilePlayer> emf);
|
| +#endif // OS_WIN
|
| +
|
| content::NotificationRegistrar registrar_;
|
|
|
| // Source that generates the PrintedPage's (i.e. a WebContents). It will be
|
| @@ -133,6 +151,11 @@ class PrintJob : public PrintJobWorkerOwner,
|
| // the notified calls Cancel() again.
|
| bool is_canceling_;
|
|
|
| +#if defined(OS_WIN)
|
| + class PdfToEmfState;
|
| + scoped_ptr<PdfToEmfState> ptd_to_emf_state_;
|
| +#endif // OS_WIN
|
| +
|
| // Used at shutdown so that we can quit a nested message loop.
|
| base::WeakPtrFactory<PrintJob> quit_factory_;
|
|
|
|
|