OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_UTILITY_PRINTING_HANDLER_H_ | 5 #ifndef CHROME_UTILITY_PRINTING_HANDLER_H_ |
6 #define CHROME_UTILITY_PRINTING_HANDLER_H_ | 6 #define CHROME_UTILITY_PRINTING_HANDLER_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
11 #include "chrome/utility/utility_message_handler.h" | 11 #include "chrome/utility/utility_message_handler.h" |
12 #include "ipc/ipc_platform_file.h" | 12 #include "ipc/ipc_platform_file.h" |
13 #include "printing/features/features.h" | 13 #include "printing/features/features.h" |
14 #include "printing/pdf_render_settings.h" | 14 #include "printing/pdf_render_settings.h" |
15 | 15 |
16 #if !BUILDFLAG(ENABLE_PRINT_PREVIEW) && \ | 16 #if !BUILDFLAG(ENABLE_PRINT_PREVIEW) && \ |
17 !(BUILDFLAG(ENABLE_BASIC_PRINTING) && defined(OS_WIN)) | 17 !(BUILDFLAG(ENABLE_BASIC_PRINTING) && defined(OS_WIN)) |
18 #error "Windows basic printing or print preview must be enabled" | 18 #error "Windows basic printing or print preview must be enabled" |
19 #endif | 19 #endif |
20 | 20 |
21 namespace printing { | 21 namespace printing { |
22 | 22 |
23 struct PwgRasterSettings; | 23 struct PwgRasterSettings; |
24 struct PageRange; | |
25 | 24 |
26 // Dispatches IPCs for printing. | 25 // Dispatches IPCs for printing. |
27 class PrintingHandler : public UtilityMessageHandler { | 26 class PrintingHandler : public UtilityMessageHandler { |
28 public: | 27 public: |
29 PrintingHandler(); | 28 PrintingHandler(); |
30 ~PrintingHandler() override; | 29 ~PrintingHandler() override; |
31 | 30 |
32 // IPC::Listener: | 31 // IPC::Listener: |
33 bool OnMessageReceived(const IPC::Message& message) override; | 32 bool OnMessageReceived(const IPC::Message& message) override; |
34 | 33 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 PdfRenderSettings pdf_rendering_settings_; | 70 PdfRenderSettings pdf_rendering_settings_; |
72 void* pdf_handle_ = nullptr; | 71 void* pdf_handle_ = nullptr; |
73 #endif | 72 #endif |
74 | 73 |
75 DISALLOW_COPY_AND_ASSIGN(PrintingHandler); | 74 DISALLOW_COPY_AND_ASSIGN(PrintingHandler); |
76 }; | 75 }; |
77 | 76 |
78 } // namespace printing | 77 } // namespace printing |
79 | 78 |
80 #endif // CHROME_UTILITY_PRINTING_HANDLER_H_ | 79 #endif // CHROME_UTILITY_PRINTING_HANDLER_H_ |
OLD | NEW |