diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-16 00:29:22 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-16 00:29:22 +0000 |
commit | fbea02332ae95f590c8a84019b582fa35e788a7c (patch) | |
tree | eeff857a083663f3d5556fcff304b5fd05e32eb2 /printing/pdf_ps_metafile_linux.h | |
parent | 0018067c7afbdf516d1845b35a3a245d96910f66 (diff) | |
download | chromium_src-fbea02332ae95f590c8a84019b582fa35e788a7c.zip chromium_src-fbea02332ae95f590c8a84019b582fa35e788a7c.tar.gz chromium_src-fbea02332ae95f590c8a84019b582fa35e788a7c.tar.bz2 |
Linux: print page to file rather than using shared memory to send it to the browser.
BUG=9847
adapted from patch by <minyu.huang [at] gmail>
Review URL: http://codereview.chromium.org/203062
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26308 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'printing/pdf_ps_metafile_linux.h')
-rw-r--r-- | printing/pdf_ps_metafile_linux.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/printing/pdf_ps_metafile_linux.h b/printing/pdf_ps_metafile_linux.h index 04b0ca1e..faf6ab7 100644 --- a/printing/pdf_ps_metafile_linux.h +++ b/printing/pdf_ps_metafile_linux.h @@ -12,6 +12,10 @@ typedef struct _cairo_surface cairo_surface_t; typedef struct _cairo cairo_t; +namespace base { +class FileDescriptor; +} + class FilePath; namespace printing { @@ -77,10 +81,10 @@ class PdfPsMetafile { // Returns true only when success. bool GetData(void* dst_buffer, size_t dst_buffer_size) const; - // Saves PDF/PS contents stored in buffer |all_pages_| into |filename| on - // the disk. + // Saves PDF/PS contents stored in buffer |all_pages_| into the file + // associated with |fd|. // This function should ONLY be called after PDF/PS file is closed. - bool SaveTo(const FilePath& filename) const; + bool SaveTo(const base::FileDescriptor& fd) const; private: // Cleans up all resources. |