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

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

Issue 5947002: As the first step in an effort to improve robustness of the cloud print proxy... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Review comments Created 10 years 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 69859)
+++ chrome/service/cloud_print/print_system.h (working copy)
@@ -10,6 +10,7 @@
#include <string>
#include <vector>
+#include "base/callback.h"
#include "base/ref_counted.h"
#include "printing/backend/print_backend.h"
@@ -130,6 +131,12 @@
JobSpooler::Delegate* delegate) = 0;
};
+ typedef Callback3<
+ bool,
+ const std::string&,
+ const printing::PrinterCapsAndDefaults&>::Type
+ PrinterCapsAndDefaultsCallback;
+
virtual ~PrintSystem();
// Initialize print system. This need to be called before any other function
@@ -139,10 +146,10 @@
// 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(
+ // Gets the capabilities and defaults for a specific printer asynchronously.
+ virtual void GetPrinterCapsAndDefaults(
const std::string& printer_name,
- printing::PrinterCapsAndDefaults* printer_info) = 0;
+ PrinterCapsAndDefaultsCallback* callback) = 0;
// Returns true if printer_name points to a valid printer.
virtual bool IsValidPrinter(const std::string& printer_name) = 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