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

Unified Diff: chrome/service/cloud_print/print_system.h

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
Index: chrome/service/cloud_print/print_system.h
===================================================================
--- chrome/service/cloud_print/print_system.h (revision 64663)
+++ chrome/service/cloud_print/print_system.h (working copy)
@@ -12,12 +12,15 @@
#include "base/ref_counted.h"
+#include "printing/backend/print_backend.h"
+
class DictionaryValue;
class FilePath;
namespace printing {
class PrintBackend;
struct PrinterBasicInfo;
+struct PrinterCapsAndDefaults;
}
// This is the interface for platform-specific code for cloud print
@@ -128,9 +131,21 @@
virtual ~PrintSystem();
- // Get the printing backend.
- virtual printing::PrintBackend* GetPrintBackend() = 0;
+ // Initialize print system. This need to be called before any other function
+ // of PrintSystem.
+ virtual void Init() = 0;
+ // Enumerates the list of installed local and network printers.
+ virtual void EnumeratePrinters(printing::PrinterList* printer_list) = 0;
+
+ // Gets the capabilities and defaults for a specific printer.
+ virtual bool GetPrinterCapsAndDefaults(
+ const std::string& printer_name,
+ printing::PrinterCapsAndDefaults* printer_info) = 0;
+
+ // Returns true if printer_name points to a valid printer.
+ 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;
« no previous file with comments | « chrome/service/cloud_print/cloud_print_proxy_backend.cc ('k') | chrome/service/cloud_print/print_system_cups.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698