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

Unified Diff: chrome/browser/renderer_host/resource_message_filter.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 | « base/file_util_posix.cc ('k') | chrome/browser/renderer_host/resource_message_filter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/renderer_host/resource_message_filter.h
===================================================================
--- chrome/browser/renderer_host/resource_message_filter.h (revision 26282)
+++ chrome/browser/renderer_host/resource_message_filter.h (working copy)
@@ -52,6 +52,9 @@
}
struct ViewHostMsg_ScriptedPrint_Params;
+#if defined(OS_LINUX)
+struct ViewHostMsg_DidPrintPage_Params;
+#endif
// This class filters out incoming IPC messages for network requests and
// processes them on the IPC thread. As a result, network requests are not
@@ -204,10 +207,11 @@
#endif
#if defined(OS_LINUX)
- // Used to ask the browser allocate a block of shared memory for the renderer
+ // Used to ask the browser allocate a temporary file for the renderer
// to fill in resulting PDF in renderer.
- void OnAllocateShareMemory(size_t buffer_size,
- base::SharedMemoryHandle* browser_handle);
+ void OnAllocateTempFileForPrinting(base::FileDescriptor* temp_file_fd,
+ int* fd_in_browser);
+ void OnTempFileForPrintingWritten(int fd_in_browser);
#endif
void OnResourceTypeStats(const WebKit::WebCache::ResourceTypeStats& stats);
« no previous file with comments | « base/file_util_posix.cc ('k') | chrome/browser/renderer_host/resource_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698