| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 // This is dummy implementation for all configurations where print system | 5 // This is dummy implementation for all configurations where print system |
| 6 // for cloud print is not available. | 6 // for cloud print is not available. |
| 7 #if !defined(CP_PRINT_SYSTEM_AVAILABLE) | 7 #if !defined(CP_PRINT_SYSTEM_AVAILABLE) |
| 8 | 8 |
| 9 #include "chrome/service/cloud_print/printer_info.h" | 9 #include "chrome/service/cloud_print/print_system.h" |
| 10 | 10 |
| 11 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 | 12 |
| 13 namespace cloud_print { | 13 namespace cloud_print { |
| 14 | 14 |
| 15 void EnumeratePrinters(PrinterList* printer_list) { | 15 std::string PrintSystem::GenerateProxyId() { |
| 16 DCHECK(printer_list); | 16 NOTREACHED(); |
| 17 NOTIMPLEMENTED(); | |
| 18 } | |
| 19 | |
| 20 bool GetPrinterCapsAndDefaults(const std::string& printer_name, | |
| 21 PrinterCapsAndDefaults* printer_info) { | |
| 22 NOTIMPLEMENTED(); | |
| 23 return false; | |
| 24 } | |
| 25 | |
| 26 bool ValidatePrintTicket(const std::string& printer_name, | |
| 27 const std::string& print_ticket_data) { | |
| 28 NOTIMPLEMENTED(); | |
| 29 return false; | |
| 30 } | |
| 31 | |
| 32 std::string GenerateProxyId() { | |
| 33 NOTIMPLEMENTED(); | |
| 34 return std::string(); | 17 return std::string(); |
| 35 } | 18 } |
| 36 | 19 |
| 37 bool SpoolPrintJob(const std::string& print_ticket, | 20 scoped_refptr<PrintSystem> PrintSystem::CreateInstance() { |
| 38 const FilePath& print_data_file_path, | 21 NOTREACHED(); |
| 39 const std::string& print_data_mime_type, | 22 return NULL; |
| 40 const std::string& printer_name, | |
| 41 const std::string& job_title, | |
| 42 PlatformJobId* job_id_ret) { | |
| 43 NOTIMPLEMENTED(); | |
| 44 return false; | |
| 45 } | |
| 46 | |
| 47 bool GetJobDetails(const std::string& printer_name, | |
| 48 PlatformJobId job_id, | |
| 49 PrintJobDetails *job_details) { | |
| 50 NOTIMPLEMENTED(); | |
| 51 return false; | |
| 52 } | |
| 53 | |
| 54 bool IsValidPrinter(const std::string& printer_name) { | |
| 55 NOTIMPLEMENTED(); | |
| 56 return false; | |
| 57 } | |
| 58 | |
| 59 PrinterChangeNotifier::PrinterChangeNotifier() : state_(NULL) { | |
| 60 } | |
| 61 | |
| 62 PrinterChangeNotifier::~PrinterChangeNotifier() { | |
| 63 StopWatching(); | |
| 64 } | |
| 65 | |
| 66 bool PrinterChangeNotifier::StartWatching(const std::string& printer_name, | |
| 67 Delegate* delegate) { | |
| 68 NOTIMPLEMENTED(); | |
| 69 return false; | |
| 70 } | |
| 71 | |
| 72 bool PrinterChangeNotifier::StopWatching() { | |
| 73 NOTIMPLEMENTED(); | |
| 74 return false; | |
| 75 } | |
| 76 | |
| 77 bool PrinterChangeNotifier::GetCurrentPrinterInfo( | |
| 78 PrinterBasicInfo* printer_info) { | |
| 79 NOTIMPLEMENTED(); | |
| 80 return false; | |
| 81 } | 23 } |
| 82 } // namespace cloud_print | 24 } // namespace cloud_print |
| 83 | 25 |
| 84 #endif // CP_PRINT_SYSTEM_AVAILABLE | 26 #endif // CP_PRINT_SYSTEM_AVAILABLE |
| 85 | 27 |
| OLD | NEW |