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..a50254fd57388b554f566399696c0769f89be097 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 supercedes the document's rendering destination. |
+ 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_; |