Chromium Code Reviews| Index: chrome/browser/printing/print_job_worker.h |
| diff --git a/chrome/browser/printing/print_job_worker.h b/chrome/browser/printing/print_job_worker.h |
| index fee682dba66f54bd138ab5bd3748693c15d926f0..93b5bc69fb97683e0780d84987318e78d6953d14 100644 |
| --- a/chrome/browser/printing/print_job_worker.h |
| +++ b/chrome/browser/printing/print_job_worker.h |
| @@ -11,6 +11,7 @@ |
| #include "base/memory/weak_ptr.h" |
| #include "base/threading/thread.h" |
| #include "printing/page_number.h" |
| +#include "printing/print_destination_interface.h" |
| #include "printing/printing_context.h" |
| #include "printing/print_job_constants.h" |
| #include "ui/gfx/native_widget_types.h" |
| @@ -39,6 +40,10 @@ class PrintJobWorker : public base::Thread { |
| void SetNewOwner(PrintJobWorkerOwner* new_owner); |
| + // Set a destination for print. |
| + // This superceeds the document's rendering destination. |
|
robertshield
2012/06/28 17:48:54
superceed -> supercede
MAD
2012/06/28 19:05:51
Done.
|
| + void SetPrintDestination(PrintDestinationInterface* destination); |
| + |
| // Initializes the print settings. If |ask_user_for_settings| is true, a |
| // Print... dialog box will be shown to ask the user his preference. |
| void GetSettings(bool ask_user_for_settings, |
| @@ -118,6 +123,9 @@ class PrintJobWorker : public base::Thread { |
| // The printed document. Only has read-only access. |
| scoped_refptr<PrintedDocument> document_; |
| + // The print destination, may be NULL. |
| + scoped_refptr<PrintDestinationInterface> destination_; |
| + |
| // The print job owning this worker thread. It is guaranteed to outlive this |
| // object. |
| PrintJobWorkerOwner* owner_; |