Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / chrome / service / cloud_print / print_system.h
index c08a107..2da5f31 100644 (file)
@@ -130,6 +130,7 @@ class PrintSystem : public base::RefCountedThreadSafe<PrintSystem> {
     // time. Subsequent calls to Spool (before the Delegate::OnJobSpoolSucceeded
     // or Delegate::OnJobSpoolFailed methods are called) can fail.
     virtual bool Spool(const std::string& print_ticket,
+                       const std::string& print_ticket_mime_type,
                        const base::FilePath& print_data_file_path,
                        const std::string& print_data_mime_type,
                        const std::string& printer_name,
@@ -177,8 +178,10 @@ class PrintSystem : public base::RefCountedThreadSafe<PrintSystem> {
   virtual bool IsValidPrinter(const std::string& printer_name) = 0;
 
   // Returns true if ticket is valid.
-  virtual bool ValidatePrintTicket(const std::string& printer_name,
-                                   const std::string& print_ticket_data) = 0;
+  virtual bool ValidatePrintTicket(
+      const std::string& printer_name,
+      const std::string& print_ticket_data,
+      const std::string& print_ticket_mime_type) = 0;
 
   // Get details for already spooled job.
   virtual bool GetJobDetails(const std::string& printer_name,
@@ -192,6 +195,10 @@ class PrintSystem : public base::RefCountedThreadSafe<PrintSystem> {
       const std::string& printer_name) = 0;
   virtual JobSpooler* CreateJobSpooler() = 0;
 
+  // Returns a true if connector should use CDD for capabilities and CJT as
+  // print ticket.
+  virtual bool UseCddAndCjt() = 0;
+
   // Returns a comma separated list of mimetypes for print data that are
   // supported by this print system. The format of this string is the same as
   // that used for the HTTP Accept: header.