Index: chrome/common/render_messages_internal.h |
diff --git a/chrome/common/render_messages_internal.h b/chrome/common/render_messages_internal.h |
index d29d41dfc2e48a9727765eb9a7cc2c460bef9dfb..9003a49d38eadd2c1a532ef846cb55696b22c431 100644 |
--- a/chrome/common/render_messages_internal.h |
+++ b/chrome/common/render_messages_internal.h |
@@ -1341,7 +1341,7 @@ IPC_BEGIN_MESSAGES(ViewHost) |
IPC_SYNC_MESSAGE_ROUTED0_1(ViewHostMsg_GetDefaultPrintSettings, |
ViewMsg_Print_Params /* default_settings */) |
-#if defined(OS_WIN) |
+#if defined(OS_WIN) || defined(OS_MACOSX) |
// It's the renderer that controls the printing process when it is generated |
// by javascript. This step is about showing UI to the user to select the |
// final print settings. The output parameter is the same as |
@@ -1526,6 +1526,14 @@ IPC_BEGIN_MESSAGES(ViewHost) |
int /* fd in browser */) |
#endif |
+#if defined(OS_MACOSX) |
+ // Asks the browser create a block of shared memory for the renderer to pass |
+ // NativeMetafile data to the browser. |
+ IPC_SYNC_MESSAGE_ROUTED1_1(ViewHostMsg_AllocatePDFTransport, |
+ size_t /* buffer size */, |
+ base::SharedMemoryHandle /* browser handle */) |
+#endif |
+ |
// Provide the browser process with information about the WebCore resource |
// cache. |
IPC_MESSAGE_CONTROL1(ViewHostMsg_ResourceTypeStats, |