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

Unified Diff: chrome/service/cloud_print/print_system_cups.cc

Issue 6523040: Added support to the Windows cloud print proxy to print XPS documents directl... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Code review changes Created 9 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/service/cloud_print/print_system.h ('k') | chrome/service/cloud_print/print_system_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/service/cloud_print/print_system_cups.cc
===================================================================
--- chrome/service/cloud_print/print_system_cups.cc (revision 74874)
+++ chrome/service/cloud_print/print_system_cups.cc (working copy)
@@ -95,6 +95,7 @@
virtual PrintSystem::PrinterWatcher* CreatePrinterWatcher(
const std::string& printer_name);
virtual PrintSystem::JobSpooler* CreateJobSpooler();
+ virtual std::string GetSupportedMimeTypes();
// Helper functions.
PlatformJobId SpoolPrintJob(const std::string& print_ticket,
@@ -644,6 +645,14 @@
return new JobSpoolerCUPS(this);
}
+std::string PrintSystemCUPS::GetSupportedMimeTypes() {
+ // Since we hand off the document to the CUPS server directly, list some types
+ // that we know CUPS supports (http://www.cups.org/articles.php?L205+TFAQ+Q)
+ // TODO(sanjeevr): Determine this dynamically (http://crbug.com/73240).
+ return
+ "application/pdf,application/postscript,image/jpeg,image/png,image/gif";
+}
+
std::string PrintSystem::GenerateProxyId() {
// TODO(gene): This code should generate a unique id for proxy. ID should be
// unique for this user. Rand may return the same number. We'll need to change
« no previous file with comments | « chrome/service/cloud_print/print_system.h ('k') | chrome/service/cloud_print/print_system_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698