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

Side by Side Diff: chrome/browser/renderer_host/resource_message_filter.h

Issue 276004: Wire up printing on the Mac (Closed)
Patch Set: Created 11 years, 2 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
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_BROWSER_RENDERER_HOST_RESOURCE_MSG_FILTER_H_ 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RESOURCE_MSG_FILTER_H_
6 #define CHROME_BROWSER_RENDERER_HOST_RESOURCE_MSG_FILTER_H_ 6 #define CHROME_BROWSER_RENDERER_HOST_RESOURCE_MSG_FILTER_H_
7 7
8 #if defined(OS_WIN) 8 #if defined(OS_WIN)
9 #include <windows.h> 9 #include <windows.h>
10 #endif 10 #endif
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 // Used to pass resulting EMF from renderer to browser in printing. 211 // Used to pass resulting EMF from renderer to browser in printing.
212 void OnDuplicateSection(base::SharedMemoryHandle renderer_handle, 212 void OnDuplicateSection(base::SharedMemoryHandle renderer_handle,
213 base::SharedMemoryHandle* browser_handle); 213 base::SharedMemoryHandle* browser_handle);
214 #endif 214 #endif
215 215
216 #if defined(OS_LINUX) 216 #if defined(OS_LINUX)
217 // Used to ask the browser allocate a temporary file for the renderer 217 // Used to ask the browser allocate a temporary file for the renderer
218 // to fill in resulting PDF in renderer. 218 // to fill in resulting PDF in renderer.
219 void OnAllocateTempFileForPrinting(IPC::Message* reply_msg); 219 void OnAllocateTempFileForPrinting(IPC::Message* reply_msg);
220 void OnTempFileForPrintingWritten(int fd_in_browser); 220 void OnTempFileForPrintingWritten(int fd_in_browser);
221 #endif 221 #endif
pink (ping after 24hrs) 2009/10/13 21:04:51 #elif?
stuartmorgan 2009/10/13 22:07:43 I'm following the convention for this file, which
222 #if defined(OS_MACOSX)
223 // Used to ask the browser to allocate a block of shared memory for the
224 // renderer to send PDF across in.
225 void OnAllocatePDFTransport(size_t buffer_size,
226 base::SharedMemoryHandle* handle);
227 #endif
222 228
223 void OnResourceTypeStats(const WebKit::WebCache::ResourceTypeStats& stats); 229 void OnResourceTypeStats(const WebKit::WebCache::ResourceTypeStats& stats);
224 static void OnResourceTypeStatsOnUIThread(WebKit::WebCache::ResourceTypeStats, 230 static void OnResourceTypeStatsOnUIThread(WebKit::WebCache::ResourceTypeStats,
225 base::ProcessId renderer_id); 231 base::ProcessId renderer_id);
226 232
227 void OnResolveProxy(const GURL& url, IPC::Message* reply_msg); 233 void OnResolveProxy(const GURL& url, IPC::Message* reply_msg);
228 234
229 // ResolveProxyMsgHelper::Delegate implementation: 235 // ResolveProxyMsgHelper::Delegate implementation:
230 virtual void OnResolveProxyCompleted(IPC::Message* reply_msg, 236 virtual void OnResolveProxyCompleted(IPC::Message* reply_msg,
231 int result, 237 int result,
232 const std::string& proxy_list); 238 const std::string& proxy_list);
233 239
234 // A javascript code requested to print the current page. This is done in two 240 // A javascript code requested to print the current page. This is done in two
235 // steps and this is the first step. Get the print setting right here 241 // steps and this is the first step. Get the print setting right here
236 // synchronously. It will hang the I/O completely. 242 // synchronously. It will hang the I/O completely.
237 void OnGetDefaultPrintSettings(IPC::Message* reply_msg); 243 void OnGetDefaultPrintSettings(IPC::Message* reply_msg);
238 void OnGetDefaultPrintSettingsReply( 244 void OnGetDefaultPrintSettingsReply(
239 scoped_refptr<printing::PrinterQuery> printer_query, 245 scoped_refptr<printing::PrinterQuery> printer_query,
240 IPC::Message* reply_msg); 246 IPC::Message* reply_msg);
241 #if defined(OS_WIN) 247 #if defined(OS_WIN) || defined(OS_MACOSX)
242 // A javascript code requested to print the current page. The renderer host 248 // A javascript code requested to print the current page. The renderer host
243 // have to show to the user the print dialog and returns the selected print 249 // have to show to the user the print dialog and returns the selected print
244 // settings. 250 // settings.
245 void OnScriptedPrint(const ViewHostMsg_ScriptedPrint_Params& params, 251 void OnScriptedPrint(const ViewHostMsg_ScriptedPrint_Params& params,
246 IPC::Message* reply_msg); 252 IPC::Message* reply_msg);
247 void OnScriptedPrintReply( 253 void OnScriptedPrintReply(
248 scoped_refptr<printing::PrinterQuery> printer_query, 254 scoped_refptr<printing::PrinterQuery> printer_query,
249 int routing_id, 255 int routing_id,
250 IPC::Message* reply_msg); 256 IPC::Message* reply_msg);
251 #endif 257 #endif
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
360 // Whether this process is used for off the record tabs. 366 // Whether this process is used for off the record tabs.
361 bool off_the_record_; 367 bool off_the_record_;
362 368
363 // A callback to create a routing id for the associated renderer process. 369 // A callback to create a routing id for the associated renderer process.
364 scoped_ptr<CallbackWithReturnValue<int>::Type> next_route_id_callback_; 370 scoped_ptr<CallbackWithReturnValue<int>::Type> next_route_id_callback_;
365 371
366 DISALLOW_COPY_AND_ASSIGN(ResourceMessageFilter); 372 DISALLOW_COPY_AND_ASSIGN(ResourceMessageFilter);
367 }; 373 };
368 374
369 #endif // CHROME_BROWSER_RENDERER_HOST_RESOURCE_MSG_FILTER_H_ 375 #endif // CHROME_BROWSER_RENDERER_HOST_RESOURCE_MSG_FILTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698