Index: components/printing/common/print_messages.h |
diff --git a/components/printing/common/print_messages.h b/components/printing/common/print_messages.h |
index fd395915885d03c8eedf05883c433cda5a5a11ba..f9b1daf905f2d9a9eae724ebea0ab1f0e36e2707 100644 |
--- a/components/printing/common/print_messages.h |
+++ b/components/printing/common/print_messages.h |
@@ -15,6 +15,7 @@ |
#include "build/build_config.h" |
#include "components/printing/common/printing_param_traits_macros.h" |
#include "ipc/ipc_message_macros.h" |
+#include "printing/common/pdf_metafile_utils.h" |
#include "printing/features/features.h" |
#include "printing/page_range.h" |
#include "printing/page_size_margins.h" |
@@ -60,6 +61,7 @@ struct PrintMsg_Print_Params { |
base::string16 title; |
base::string16 url; |
bool should_print_backgrounds; |
+ printing::SkiaDocumentType printed_doc_type; |
}; |
struct PrintMsg_PrintPages_Params { |
@@ -101,6 +103,8 @@ struct PrintHostMsg_SetOptionsFromDocument_Params { |
IPC_ENUM_TRAITS_MAX_VALUE(blink::WebPrintScalingOption, |
blink::kWebPrintScalingOptionLast) |
+IPC_ENUM_TRAITS_MAX_VALUE(printing::SkiaDocumentType, |
+ printing::SkiaDocumentType::MAX) |
// Parameters for a render request. |
IPC_STRUCT_TRAITS_BEGIN(PrintMsg_Print_Params) |
@@ -166,6 +170,9 @@ IPC_STRUCT_TRAITS_BEGIN(PrintMsg_Print_Params) |
// True if print backgrounds is requested by the user. |
IPC_STRUCT_TRAITS_MEMBER(should_print_backgrounds) |
+ |
+ // The document type of printed page(s) from render. |
+ IPC_STRUCT_TRAITS_MEMBER(printed_doc_type) |
IPC_STRUCT_TRAITS_END() |
IPC_STRUCT_TRAITS_BEGIN(printing::PageRange) |