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 |