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

Side by Side Diff: chrome/service/service_utility_process_host.h

Issue 255543006: Printing on Windows via PDF (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove ref to internal_pdf and rebase Created 6 years, 7 months 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_SERVICE_SERVICE_UTILITY_PROCESS_HOST_H_ 5 #ifndef CHROME_SERVICE_SERVICE_UTILITY_PROCESS_HOST_H_
6 #define CHROME_SERVICE_SERVICE_UTILITY_PROCESS_HOST_H_ 6 #define CHROME_SERVICE_SERVICE_UTILITY_PROCESS_HOST_H_
7 7
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 9
10 #include <string> 10 #include <string>
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 // TODO(sanjeevr): Determine whether we need to make the launch asynchronous. 132 // TODO(sanjeevr): Determine whether we need to make the launch asynchronous.
133 // |exposed_dir| is the path to tbe exposed to the sandbox. This is ignored 133 // |exposed_dir| is the path to tbe exposed to the sandbox. This is ignored
134 // if |no_sandbox| is true. 134 // if |no_sandbox| is true.
135 bool Launch(base::CommandLine* cmd_line, 135 bool Launch(base::CommandLine* cmd_line,
136 bool no_sandbox, 136 bool no_sandbox,
137 const base::FilePath& exposed_dir); 137 const base::FilePath& exposed_dir);
138 138
139 base::ProcessHandle handle() const { return handle_; } 139 base::ProcessHandle handle() const { return handle_; }
140 140
141 // Messages handlers: 141 // Messages handlers:
142 void OnRenderPDFPagesToMetafileSucceeded(int highest_rendered_page_number, 142 void OnRenderPDFPagesToMetafilesSucceeded(
143 double scale_factor); 143 const std::vector<printing::PageRange>& page_ranges,
144 double scale_factor);
144 void OnRenderPDFPagesToMetafileFailed(); 145 void OnRenderPDFPagesToMetafileFailed();
145 void OnGetPrinterCapsAndDefaultsSucceeded( 146 void OnGetPrinterCapsAndDefaultsSucceeded(
146 const std::string& printer_name, 147 const std::string& printer_name,
147 const printing::PrinterCapsAndDefaults& caps_and_defaults); 148 const printing::PrinterCapsAndDefaults& caps_and_defaults);
148 void OnGetPrinterCapsAndDefaultsFailed(const std::string& printer_name); 149 void OnGetPrinterCapsAndDefaultsFailed(const std::string& printer_name);
149 void OnGetPrinterSemanticCapsAndDefaultsSucceeded( 150 void OnGetPrinterSemanticCapsAndDefaultsSucceeded(
150 const std::string& printer_name, 151 const std::string& printer_name,
151 const printing::PrinterSemanticCapsAndDefaults& caps_and_defaults); 152 const printing::PrinterSemanticCapsAndDefaults& caps_and_defaults);
152 void OnGetPrinterSemanticCapsAndDefaultsFailed( 153 void OnGetPrinterSemanticCapsAndDefaultsFailed(
153 const std::string& printer_name); 154 const std::string& printer_name);
154 155
155 scoped_ptr<content::ChildProcessHost> child_process_host_; 156 scoped_ptr<content::ChildProcessHost> child_process_host_;
156 base::ProcessHandle handle_; 157 base::ProcessHandle handle_;
157 // A pointer to our client interface, who will be informed of progress. 158 // A pointer to our client interface, who will be informed of progress.
158 scoped_refptr<Client> client_; 159 scoped_refptr<Client> client_;
159 scoped_refptr<base::MessageLoopProxy> client_message_loop_proxy_; 160 scoped_refptr<base::MessageLoopProxy> client_message_loop_proxy_;
160 bool waiting_for_reply_; 161 bool waiting_for_reply_;
161 // The path to the temp file where the metafile will be written to. 162 // The base path to the temp file where the metafile will be written to.
162 base::FilePath metafile_path_; 163 base::FilePath metafile_path_;
163 // The temporary folder created for the metafile. 164 // The temporary folder created for the metafile.
164 scoped_ptr<base::ScopedTempDir> scratch_metafile_dir_; 165 scoped_ptr<base::ScopedTempDir> scratch_metafile_dir_;
165 // Start time of operation. 166 // Start time of operation.
166 base::Time start_time_; 167 base::Time start_time_;
167 168
168 DISALLOW_COPY_AND_ASSIGN(ServiceUtilityProcessHost); 169 DISALLOW_COPY_AND_ASSIGN(ServiceUtilityProcessHost);
169 }; 170 };
170 171
171 #endif // CHROME_SERVICE_SERVICE_UTILITY_PROCESS_HOST_H_ 172 #endif // CHROME_SERVICE_SERVICE_UTILITY_PROCESS_HOST_H_
OLDNEW
« no previous file with comments | « chrome/renderer/printing/print_web_view_helper_pdf_win.cc ('k') | chrome/service/service_utility_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698