| Index: chrome/browser/printing/print_dialog_cloud.h
|
| ===================================================================
|
| --- chrome/browser/printing/print_dialog_cloud.h (revision 71046)
|
| +++ chrome/browser/printing/print_dialog_cloud.h (working copy)
|
| @@ -8,6 +8,7 @@
|
|
|
| #include "base/basictypes.h"
|
| #include "base/gtest_prod_util.h"
|
| +#include "base/string16.h"
|
|
|
| class Browser;
|
| class FilePath;
|
| @@ -17,20 +18,28 @@
|
|
|
| class PrintDialogCloud {
|
| public:
|
| - // Called on the IO thread.
|
| - static void CreatePrintDialogForPdf(const FilePath& path_to_pdf);
|
| + // Called on the IO or UI thread.
|
| + static void CreatePrintDialogForPdf(const FilePath& path_to_pdf,
|
| + const string16& print_job_title,
|
| + bool modal);
|
|
|
| private:
|
| friend class PrintDialogCloudTest;
|
|
|
| - explicit PrintDialogCloud(const FilePath& path_to_pdf);
|
| + explicit PrintDialogCloud(const FilePath& path_to_pdf,
|
| + const string16& print_job_title,
|
| + bool modal);
|
| ~PrintDialogCloud();
|
|
|
| // Called as a task from the UI thread, creates an object instance
|
| // to run the HTML/JS based print dialog for printing through the cloud.
|
| - static void CreateDialogImpl(const FilePath& path_to_pdf);
|
| + static void CreateDialogImpl(const FilePath& path_to_pdf,
|
| + const string16& print_job_title,
|
| + bool modal);
|
|
|
| Browser* browser_;
|
| + string16 print_job_title_;
|
| + bool modal_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(PrintDialogCloud);
|
| };
|
|
|