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

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

Issue 2508563003: Printing: Load the source PDF only once. (Closed)
Patch Set: More renaming Created 4 years, 1 month 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 18 matching lines...) Expand all
29 public: 29 public:
30 PrintingHandler(); 30 PrintingHandler();
31 ~PrintingHandler() override; 31 ~PrintingHandler() override;
32 32
33 // IPC::Listener: 33 // IPC::Listener:
34 bool OnMessageReceived(const IPC::Message& message) override; 34 bool OnMessageReceived(const IPC::Message& message) override;
35 35
36 private: 36 private:
37 // IPC message handlers. 37 // IPC message handlers.
38 #if defined(OS_WIN) 38 #if defined(OS_WIN)
39 void OnRenderPDFPagesToMetafile(IPC::PlatformFileForTransit pdf_transit, 39 void OnRenderPDFPagesToMetafileStart(IPC::PlatformFileForTransit pdf_transit,
40 const PdfRenderSettings& settings, 40 const PdfRenderSettings& settings,
41 bool print_text_with_gdi); 41 bool print_text_with_gdi);
42 void OnRenderPDFPagesToMetafileGetPage( 42 void OnRenderPDFPagesToMetafileGetPage(
43 int page_number, 43 int page_number,
44 IPC::PlatformFileForTransit output_file); 44 IPC::PlatformFileForTransit output_file);
45 void OnRenderPDFPagesToMetafileStop(); 45 void OnRenderPDFPagesToMetafileStop();
46 #endif // OS_WIN 46 #endif // OS_WIN
47 #if BUILDFLAG(ENABLE_PRINT_PREVIEW) 47 #if BUILDFLAG(ENABLE_PRINT_PREVIEW)
48 void OnRenderPDFPagesToPWGRaster(IPC::PlatformFileForTransit pdf_transit, 48 void OnRenderPDFPagesToPWGRaster(IPC::PlatformFileForTransit pdf_transit,
49 const PdfRenderSettings& settings, 49 const PdfRenderSettings& settings,
(...skipping 13 matching lines...) Expand all
63 const PwgRasterSettings& bitmap_settings, 63 const PwgRasterSettings& bitmap_settings,
64 base::File bitmap_file); 64 base::File bitmap_file);
65 65
66 void OnGetPrinterCapsAndDefaults(const std::string& printer_name); 66 void OnGetPrinterCapsAndDefaults(const std::string& printer_name);
67 void OnGetPrinterSemanticCapsAndDefaults(const std::string& printer_name); 67 void OnGetPrinterSemanticCapsAndDefaults(const std::string& printer_name);
68 #endif // ENABLE_PRINT_PREVIEW 68 #endif // ENABLE_PRINT_PREVIEW
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 PdfRenderSettings pdf_rendering_settings_; 72 PdfRenderSettings pdf_rendering_settings_;
73 void* pdf_handle_ = nullptr;
73 #endif 74 #endif
74 75
75 DISALLOW_COPY_AND_ASSIGN(PrintingHandler); 76 DISALLOW_COPY_AND_ASSIGN(PrintingHandler);
76 }; 77 };
77 78
78 } // namespace printing 79 } // namespace printing
79 80
80 #endif // CHROME_UTILITY_PRINTING_HANDLER_H_ 81 #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