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

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

Issue 6245005: Code to send diagnostic messages about cloud print proxy. Currently diagnosti... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Fixed build errors yet again Created 9 years, 11 months 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 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;

Powered by Google App Engine
This is Rietveld 408576698