Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2466)

Unified Diff: chrome/browser/printing/print_job.h

Issue 566693002: Use file handles to interact with utility process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Mon Sep 15 18:19:41 PDT 2014 Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_;

Powered by Google App Engine
This is Rietveld 408576698