OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_PRINTING_PRINT_DIALOG_CLOUD_H_ | 5 #ifndef CHROME_BROWSER_PRINTING_PRINT_DIALOG_CLOUD_H_ |
6 #define CHROME_BROWSER_PRINTING_PRINT_DIALOG_CLOUD_H_ | 6 #define CHROME_BROWSER_PRINTING_PRINT_DIALOG_CLOUD_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
| 11 #include "base/string16.h" |
11 | 12 |
12 class Browser; | 13 class Browser; |
13 class FilePath; | 14 class FilePath; |
14 namespace IPC { | 15 namespace IPC { |
15 class Message; | 16 class Message; |
16 } | 17 } |
17 | 18 |
18 class PrintDialogCloud { | 19 class PrintDialogCloud { |
19 public: | 20 public: |
20 // Called on the IO thread. | 21 // Called on the IO or UI thread. |
21 static void CreatePrintDialogForPdf(const FilePath& path_to_pdf); | 22 static void CreatePrintDialogForPdf(const FilePath& path_to_pdf, |
| 23 const string16& print_job_title, |
| 24 bool modal); |
22 | 25 |
23 private: | 26 private: |
24 friend class PrintDialogCloudTest; | 27 friend class PrintDialogCloudTest; |
25 | 28 |
26 explicit PrintDialogCloud(const FilePath& path_to_pdf); | 29 explicit PrintDialogCloud(const FilePath& path_to_pdf, |
| 30 const string16& print_job_title, |
| 31 bool modal); |
27 ~PrintDialogCloud(); | 32 ~PrintDialogCloud(); |
28 | 33 |
29 // Called as a task from the UI thread, creates an object instance | 34 // Called as a task from the UI thread, creates an object instance |
30 // to run the HTML/JS based print dialog for printing through the cloud. | 35 // to run the HTML/JS based print dialog for printing through the cloud. |
31 static void CreateDialogImpl(const FilePath& path_to_pdf); | 36 static void CreateDialogImpl(const FilePath& path_to_pdf, |
| 37 const string16& print_job_title, |
| 38 bool modal); |
32 | 39 |
33 Browser* browser_; | 40 Browser* browser_; |
| 41 string16 print_job_title_; |
| 42 bool modal_; |
34 | 43 |
35 DISALLOW_COPY_AND_ASSIGN(PrintDialogCloud); | 44 DISALLOW_COPY_AND_ASSIGN(PrintDialogCloud); |
36 }; | 45 }; |
37 | 46 |
38 #endif // CHROME_BROWSER_PRINTING_PRINT_DIALOG_CLOUD_H_ | 47 #endif // CHROME_BROWSER_PRINTING_PRINT_DIALOG_CLOUD_H_ |
OLD | NEW |