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

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

Issue 8600007: base::Bind: Convert chrome/service/cloud_print. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase and review fixes. Created 9 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
diff --git a/chrome/service/cloud_print/print_system.h b/chrome/service/cloud_print/print_system.h
index 4a343d8f588f48099f52e0b3828a67a158c2a993..f1ba32409f8885edd22a7f642265224fc94d942f 100644
--- a/chrome/service/cloud_print/print_system.h
+++ b/chrome/service/cloud_print/print_system.h
@@ -10,7 +10,7 @@
#include <string>
#include <vector>
-#include "base/callback_old.h"
+#include "base/callback.h"
#include "base/memory/ref_counted.h"
#include "printing/backend/print_backend.h"
@@ -147,11 +147,10 @@ class PrintSystem : public base::RefCountedThreadSafe<PrintSystem> {
PrintSystemResult() { }
};
- typedef Callback3<
- bool,
- const std::string&,
- const printing::PrinterCapsAndDefaults&>::Type
- PrinterCapsAndDefaultsCallback;
+ typedef base::Callback<void(bool,
+ const std::string&,
+ const printing::PrinterCapsAndDefaults&)>
+ PrinterCapsAndDefaultsCallback;
virtual ~PrintSystem();
@@ -166,7 +165,7 @@ class PrintSystem : public base::RefCountedThreadSafe<PrintSystem> {
// Gets the capabilities and defaults for a specific printer asynchronously.
virtual void GetPrinterCapsAndDefaults(
const std::string& printer_name,
- PrinterCapsAndDefaultsCallback* callback) = 0;
+ const 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_connector.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