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

Unified Diff: chrome/browser/renderer_host/resource_message_filter.h

Issue 276004: Wire up printing on the Mac (Closed)
Patch Set: Created 11 years, 2 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
Index: chrome/browser/renderer_host/resource_message_filter.h
diff --git a/chrome/browser/renderer_host/resource_message_filter.h b/chrome/browser/renderer_host/resource_message_filter.h
index 8821ac651a9552e5283ed09035bfc3713401bb97..6a12d14ab76e7799be00bd351ed9f37876a7ff6b 100644
--- a/chrome/browser/renderer_host/resource_message_filter.h
+++ b/chrome/browser/renderer_host/resource_message_filter.h
@@ -219,6 +219,12 @@ class ResourceMessageFilter : public IPC::ChannelProxy::MessageFilter,
void OnAllocateTempFileForPrinting(IPC::Message* reply_msg);
void OnTempFileForPrintingWritten(int fd_in_browser);
#endif
pink (ping after 24hrs) 2009/10/13 21:04:51 #elif?
stuartmorgan 2009/10/13 22:07:43 I'm following the convention for this file, which
+#if defined(OS_MACOSX)
+ // Used to ask the browser to allocate a block of shared memory for the
+ // renderer to send PDF across in.
+ void OnAllocatePDFTransport(size_t buffer_size,
+ base::SharedMemoryHandle* handle);
+#endif
void OnResourceTypeStats(const WebKit::WebCache::ResourceTypeStats& stats);
static void OnResourceTypeStatsOnUIThread(WebKit::WebCache::ResourceTypeStats,
@@ -238,7 +244,7 @@ class ResourceMessageFilter : public IPC::ChannelProxy::MessageFilter,
void OnGetDefaultPrintSettingsReply(
scoped_refptr<printing::PrinterQuery> printer_query,
IPC::Message* reply_msg);
-#if defined(OS_WIN)
+#if defined(OS_WIN) || defined(OS_MACOSX)
// A javascript code requested to print the current page. The renderer host
// have to show to the user the print dialog and returns the selected print
// settings.

Powered by Google App Engine
This is Rietveld 408576698