Chromium Code Reviews| Index: chrome/browser/printing/print_view_manager.h |
| diff --git a/chrome/browser/printing/print_view_manager.h b/chrome/browser/printing/print_view_manager.h |
| index da7457862921622ec93e5011c27bf03530e08a7f..465916033511e8576029491d1ad9db3d00a06356 100644 |
| --- a/chrome/browser/printing/print_view_manager.h |
| +++ b/chrome/browser/printing/print_view_manager.h |
| @@ -11,6 +11,7 @@ |
| #include "content/public/browser/notification_observer.h" |
| #include "content/public/browser/notification_registrar.h" |
| #include "content/public/browser/web_contents_observer.h" |
| +#include "printing/printed_document.h" |
| #include "printing/printed_pages_source.h" |
| class TabContents; |
| @@ -34,6 +35,9 @@ class PrintViewManager : public content::NotificationObserver, |
| public PrintedPagesSource, |
| public content::WebContentsObserver { |
| public: |
| + class Delegate : public base::RefCountedThreadSafe<PrintJobWorkerOwner> { |
|
MAD
2012/06/15 02:54:29
Oopss... I'll need to remove this...
MAD
2012/06/28 15:48:14
Done.
|
| + |
| + }; |
| explicit PrintViewManager(TabContents* tab); |
| virtual ~PrintViewManager(); |
| @@ -51,6 +55,10 @@ class PrintViewManager : public content::NotificationObserver, |
| // preview tab. |
| bool AdvancedPrintNow(); |
| + // Same as PrintNow(), but for the case where we want to send the result to |
| + // a Delegate. |
| + bool PrintToDelegate(PrintedDocument::Delegate* printed_document_delegate); |
| + |
| // Initiate print preview of the current document by first notifying the |
| // renderer. Since this happens asynchronous, the print preview tab creation |
| // will not be completed on the return of this function. Returns false if |
| @@ -190,6 +198,9 @@ class PrintViewManager : public content::NotificationObserver, |
| // shown. |
| PrintViewManagerObserver* observer_; |
| + // A potential delegate to be set on the printed document. |
| + scoped_refptr<PrintedDocument::Delegate> printed_document_delegate_; |
| + |
| // The document cookie of the current PrinterQuery. |
| int cookie_; |