Chromium Code Reviews| Index: chrome/browser/printing/print_view_manager_basic.h |
| diff --git a/chrome/browser/printing/print_view_manager_basic.h b/chrome/browser/printing/print_view_manager_basic.h |
| index be1bc66bc07fc8a28dbbb249af90aeb0187feda3..e08b8cb254a282fde9724484039ba692a388f03f 100644 |
| --- a/chrome/browser/printing/print_view_manager_basic.h |
| +++ b/chrome/browser/printing/print_view_manager_basic.h |
| @@ -8,6 +8,10 @@ |
| #include "chrome/browser/printing/print_view_manager_base.h" |
| #include "content/public/browser/web_contents_user_data.h" |
| +#if defined(OS_ANDROID) |
| +#include "base/file_descriptor_posix.h" |
| +#endif |
| + |
| namespace printing { |
| // Manages the print commands for a WebContents - basic version. |
| @@ -17,10 +21,22 @@ class PrintViewManagerBasic |
| public: |
| virtual ~PrintViewManagerBasic(); |
| +#if defined(OS_ANDROID) |
| + // Sets the file descriptor into which PDF will be written. |
| + void SetFileDescriptor(const base::FileDescriptor& file_descriptor); |
|
Lei Zhang
2013/08/13 23:26:37
nit: add a blank line after this.
cimamoglu1
2013/08/14 16:10:36
Done.
|
| + // Gets the file descriptor into which PDF will be written. |
| + base::FileDescriptor GetFileDescriptor(); |
|
Lei Zhang
2013/08/13 23:26:37
const method
cimamoglu1
2013/08/14 16:10:36
Done.
|
| +#endif |
| + |
| private: |
| explicit PrintViewManagerBasic(content::WebContents* web_contents); |
| friend class content::WebContentsUserData<PrintViewManagerBasic>; |
| +#if defined(OS_ANDROID) |
| + // The file descriptor the PDF of the page will be written. |
| + base::FileDescriptor file_descriptor_; |
| +#endif |
| + |
| DISALLOW_COPY_AND_ASSIGN(PrintViewManagerBasic); |
| }; |