Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(39)

Unified Diff: printing/pdf_ps_metafile_linux.h

Issue 203062: Linux: print page to file rather than using shared memory to send it to the b... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: style Created 11 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/renderer/print_web_view_helper_linux.cc ('k') | printing/pdf_ps_metafile_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/pdf_ps_metafile_linux.h
===================================================================
--- printing/pdf_ps_metafile_linux.h (revision 26282)
+++ printing/pdf_ps_metafile_linux.h (working copy)
@@ -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 @@
// 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.
« no previous file with comments | « chrome/renderer/print_web_view_helper_linux.cc ('k') | printing/pdf_ps_metafile_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698