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 /base/file_util.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 'base/file_util.h')
-rw-r--r-- | base/file_util.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/base/file_util.h b/base/file_util.h index ba8738c..6474f048 100644 --- a/base/file_util.h +++ b/base/file_util.h @@ -367,6 +367,10 @@ int ReadFile(const std::wstring& filename, char* data, int size); int WriteFile(const FilePath& filename, const char* data, int size); // Deprecated temporary compatibility function. int WriteFile(const std::wstring& filename, const char* data, int size); +#if defined(OS_POSIX) +// Append the data to |fd|. Does not close |fd| when done. +int WriteFileDescriptor(const int fd, const char* data, int size); +#endif // Gets the current working directory for the process. bool GetCurrentDirectory(FilePath* path); |