Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(525)

Side by Side Diff: chrome/utility/printing_handler.h

Issue 2541843005: Revert "Printing: Load the source PDF only once." (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/service/service_utility_process_host.cc ('k') | chrome/utility/printing_handler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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"
(...skipping 16 matching lines...) Expand all
27 public: 27 public:
28 PrintingHandler(); 28 PrintingHandler();
29 ~PrintingHandler() override; 29 ~PrintingHandler() override;
30 30
31 // IPC::Listener: 31 // IPC::Listener:
32 bool OnMessageReceived(const IPC::Message& message) override; 32 bool OnMessageReceived(const IPC::Message& message) override;
33 33
34 private: 34 private:
35 // IPC message handlers. 35 // IPC message handlers.
36 #if defined(OS_WIN) 36 #if defined(OS_WIN)
37 void OnRenderPDFPagesToMetafileStart(IPC::PlatformFileForTransit pdf_transit, 37 void OnRenderPDFPagesToMetafile(IPC::PlatformFileForTransit pdf_transit,
38 const PdfRenderSettings& settings, 38 const PdfRenderSettings& settings,
39 bool print_text_with_gdi); 39 bool print_text_with_gdi);
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();
44 #endif // OS_WIN 44 #endif // OS_WIN
45 #if BUILDFLAG(ENABLE_PRINT_PREVIEW) 45 #if BUILDFLAG(ENABLE_PRINT_PREVIEW)
46 void OnRenderPDFPagesToPWGRaster(IPC::PlatformFileForTransit pdf_transit, 46 void OnRenderPDFPagesToPWGRaster(IPC::PlatformFileForTransit pdf_transit,
47 const PdfRenderSettings& settings, 47 const PdfRenderSettings& settings,
(...skipping 13 matching lines...) Expand all
61 const PwgRasterSettings& bitmap_settings, 61 const PwgRasterSettings& bitmap_settings,
62 base::File bitmap_file); 62 base::File bitmap_file);
63 63
64 void OnGetPrinterCapsAndDefaults(const std::string& printer_name); 64 void OnGetPrinterCapsAndDefaults(const std::string& printer_name);
65 void OnGetPrinterSemanticCapsAndDefaults(const std::string& printer_name); 65 void OnGetPrinterSemanticCapsAndDefaults(const std::string& printer_name);
66 #endif // ENABLE_PRINT_PREVIEW 66 #endif // ENABLE_PRINT_PREVIEW
67 67
68 #if defined(OS_WIN) 68 #if defined(OS_WIN)
69 std::vector<char> pdf_data_; 69 std::vector<char> pdf_data_;
70 PdfRenderSettings pdf_rendering_settings_; 70 PdfRenderSettings pdf_rendering_settings_;
71 void* pdf_handle_ = nullptr;
72 #endif 71 #endif
73 72
74 DISALLOW_COPY_AND_ASSIGN(PrintingHandler); 73 DISALLOW_COPY_AND_ASSIGN(PrintingHandler);
75 }; 74 };
76 75
77 } // namespace printing 76 } // namespace printing
78 77
79 #endif // CHROME_UTILITY_PRINTING_HANDLER_H_ 78 #endif // CHROME_UTILITY_PRINTING_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/service/service_utility_process_host.cc ('k') | chrome/utility/printing_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698