| Index: chrome/service/cloud_print/print_system.h
|
| ===================================================================
|
| --- chrome/service/cloud_print/print_system.h (revision 70946)
|
| +++ chrome/service/cloud_print/print_system.h (working copy)
|
| @@ -131,6 +131,20 @@
|
| JobSpooler::Delegate* delegate) = 0;
|
| };
|
|
|
| + class PrintSystemResult {
|
| + public:
|
| + PrintSystemResult(bool succeeded, const std::string& message)
|
| + : succeeded_(succeeded), message_(message) { }
|
| + bool succeeded() const { return succeeded_; }
|
| + std::string message() const { return message_; }
|
| +
|
| + private:
|
| + bool succeeded_;
|
| + std::string message_;
|
| +
|
| + PrintSystemResult() { }
|
| + };
|
| +
|
| typedef Callback3<
|
| bool,
|
| const std::string&,
|
| @@ -141,7 +155,7 @@
|
|
|
| // Initialize print system. This need to be called before any other function
|
| // of PrintSystem.
|
| - virtual void Init() = 0;
|
| + virtual PrintSystemResult Init() = 0;
|
|
|
| // Enumerates the list of installed local and network printers.
|
| virtual void EnumeratePrinters(printing::PrinterList* printer_list) = 0;
|
|
|