Index: chrome/common/print_messages.h |
diff --git a/chrome/common/print_messages.h b/chrome/common/print_messages.h |
index 36444289875f418cdb16feced7158cf6f5ad7130..f5f0d5d2288580ad027170c6412cfb5e0c08a3de 100644 |
--- a/chrome/common/print_messages.h |
+++ b/chrome/common/print_messages.h |
@@ -129,6 +129,9 @@ IPC_STRUCT_BEGIN(PrintHostMsg_DidGetPreviewPageCount_Params) |
// The id of the preview request. |
IPC_STRUCT_MEMBER(int, preview_request_id) |
+ |
+ // Indicates whether the existing preview data needs to be cleared or not. |
+ IPC_STRUCT_MEMBER(bool, clear_preview_data) |
IPC_STRUCT_END() |
// Parameters to describe a rendered page. |
@@ -209,11 +212,7 @@ IPC_MESSAGE_ROUTED0(PrintMsg_PrintForSystemDialog) |
IPC_MESSAGE_ROUTED0(PrintMsg_ResetScriptedPrintCount) |
// Tells a renderer to continue generating the print preview. |
-// Use |requested_preview_page_index| to request a specific preview page data. |
-// |requested_preview_page_index| is 1-based or |printing::INVALID_PAGE_INDEX| |
-// to render the next page. |
-IPC_MESSAGE_ROUTED1(PrintMsg_ContinuePreview, |
- int /* requested_preview_page_index */) |
+IPC_MESSAGE_ROUTED0(PrintMsg_ContinuePreview) |
// Tells a renderer to abort the print preview and reset all state. |
IPC_MESSAGE_ROUTED0(PrintMsg_AbortPreview) |
@@ -291,7 +290,7 @@ IPC_MESSAGE_ROUTED1(PrintHostMsg_DidPreviewPage, |
// Sends back to the browser the complete rendered document for print preview |
// that was requested by a PrintMsg_PrintPreview message. The memory handle in |
// this message is already valid in the browser process. |
-IPC_MESSAGE_ROUTED1(PrintHostMsg_PagesReadyForPreview, |
+IPC_MESSAGE_ROUTED1(PrintHostMsg_MetafileReadyForPrinting, |
PrintHostMsg_DidPreviewDocument_Params /* params */) |
// Tell the browser printing failed. |