| 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 "chrome/utility/utility_message_handler.h" | 10 #include "chrome/utility/utility_message_handler.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 | 23 |
| 24 // Dispatches IPCs for printing. | 24 // Dispatches IPCs for printing. |
| 25 class PrintingHandler : public UtilityMessageHandler { | 25 class PrintingHandler : public UtilityMessageHandler { |
| 26 public: | 26 public: |
| 27 PrintingHandler(); | 27 PrintingHandler(); |
| 28 virtual ~PrintingHandler(); | 28 virtual ~PrintingHandler(); |
| 29 | 29 |
| 30 static void PreSandboxStartup(); | 30 static void PreSandboxStartup(); |
| 31 | 31 |
| 32 // IPC::Listener: | 32 // IPC::Listener: |
| 33 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 33 virtual bool OnMessageReceived(const IPC::Message& message) override; |
| 34 | 34 |
| 35 private: | 35 private: |
| 36 // IPC message handlers. | 36 // IPC message handlers. |
| 37 #if defined(OS_WIN) | 37 #if defined(OS_WIN) |
| 38 void OnRenderPDFPagesToMetafile(IPC::PlatformFileForTransit pdf_transit, | 38 void OnRenderPDFPagesToMetafile(IPC::PlatformFileForTransit pdf_transit, |
| 39 const printing::PdfRenderSettings& settings); | 39 const printing::PdfRenderSettings& settings); |
| 40 void OnRenderPDFPagesToMetafileGetPage( | 40 void OnRenderPDFPagesToMetafileGetPage( |
| 41 int page_number, | 41 int page_number, |
| 42 IPC::PlatformFileForTransit output_file); | 42 IPC::PlatformFileForTransit output_file); |
| 43 void OnRenderPDFPagesToMetafileStop(); | 43 void OnRenderPDFPagesToMetafileStop(); |
| (...skipping 25 matching lines...) Expand all Loading... |
| 69 | 69 |
| 70 #if defined(OS_WIN) | 70 #if defined(OS_WIN) |
| 71 std::vector<char> pdf_data_; | 71 std::vector<char> pdf_data_; |
| 72 printing::PdfRenderSettings pdf_rendering_settings_; | 72 printing::PdfRenderSettings pdf_rendering_settings_; |
| 73 #endif | 73 #endif |
| 74 | 74 |
| 75 DISALLOW_COPY_AND_ASSIGN(PrintingHandler); | 75 DISALLOW_COPY_AND_ASSIGN(PrintingHandler); |
| 76 }; | 76 }; |
| 77 | 77 |
| 78 #endif // CHROME_UTILITY_PRINTING_HANDLER_H_ | 78 #endif // CHROME_UTILITY_PRINTING_HANDLER_H_ |
| OLD | NEW |