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

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

Issue 4233004: Make CUPS cloud print proxy to support multiple print servers.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month 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_cups.cc ('k') | chrome/service/cloud_print/printer_job_handler.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_win.cc
===================================================================
--- chrome/service/cloud_print/print_system_win.cc (revision 64663)
+++ chrome/service/cloud_print/print_system_win.cc (working copy)
@@ -239,8 +239,16 @@
PrintSystemWin();
// PrintSystem implementation.
- virtual printing::PrintBackend* GetPrintBackend();
+ virtual void Init();
+ virtual void EnumeratePrinters(printing::PrinterList* printer_list);
+
+ virtual bool GetPrinterCapsAndDefaults(
+ const std::string& printer_name,
+ printing::PrinterCapsAndDefaults* printer_info);
+
+ virtual bool IsValidPrinter(const std::string& printer_name);
+
virtual bool ValidatePrintTicket(const std::string& printer_name,
const std::string& print_ticket_data);
@@ -508,23 +516,30 @@
virtual PrintSystem::JobSpooler* CreateJobSpooler();
private:
- void Init();
-
scoped_refptr<printing::PrintBackend> print_backend_;
};
PrintSystemWin::PrintSystemWin() {
- Init();
+ print_backend_ = printing::PrintBackend::CreateInstance(NULL);
}
void PrintSystemWin::Init() {
- print_backend_ = printing::PrintBackend::CreateInstance(NULL);
}
-printing::PrintBackend* PrintSystemWin::GetPrintBackend() {
- return print_backend_;
+void PrintSystemWin::EnumeratePrinters(printing::PrinterList* printer_list) {
+ print_backend_->EnumeratePrinters(printer_list);
}
+bool PrintSystemWin::GetPrinterCapsAndDefaults(
+ const std::string& printer_name,
+ printing::PrinterCapsAndDefaults* printer_info) {
+ return print_backend_->GetPrinterCapsAndDefaults(printer_name, printer_info);
+}
+
+bool PrintSystemWin::IsValidPrinter(const std::string& printer_name) {
+ return print_backend_->IsValidPrinter(printer_name);
+}
+
bool PrintSystemWin::ValidatePrintTicket(
const std::string& printer_name,
const std::string& print_ticket_data) {
« no previous file with comments | « chrome/service/cloud_print/print_system_cups.cc ('k') | chrome/service/cloud_print/printer_job_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698