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

Unified Diff: chromeos/dbus/image_burner_client.h

Issue 10024054: chromeos: Convert D-Bus client classes' callback arguments to const reference (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 8 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
« no previous file with comments | « chromeos/dbus/flimflam_client_unittest_base.cc ('k') | chromeos/dbus/image_burner_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/dbus/image_burner_client.h
diff --git a/chromeos/dbus/image_burner_client.h b/chromeos/dbus/image_burner_client.h
index 513496d34cb005fd74272b4856a271933b533e74..5368eb00dfe874b1b98992554319ad9c3eef4885 100644
--- a/chromeos/dbus/image_burner_client.h
+++ b/chromeos/dbus/image_burner_client.h
@@ -42,15 +42,15 @@ class CHROMEOS_EXPORT ImageBurnerClient {
// Burns the image |from_path| to the disk |to_path|.
virtual void BurnImage(const std::string& from_path,
const std::string& to_path,
- ErrorCallback error_callback) = 0;
+ const ErrorCallback& error_callback) = 0;
// Sets callbacks as event handlers.
// |burn_finished_handler| is called when burn_finished signal is received.
// |burn_progress_update_handler| is called when burn_progress_update signal
// is received.
virtual void SetEventHandlers(
- BurnFinishedHandler burn_finished_handler,
- BurnProgressUpdateHandler burn_progress_update_handler) = 0;
+ const BurnFinishedHandler& burn_finished_handler,
+ const BurnProgressUpdateHandler& burn_progress_update_handler) = 0;
// Resets event handlers. After calling this method, nothing is done when
// signals are received.
« no previous file with comments | « chromeos/dbus/flimflam_client_unittest_base.cc ('k') | chromeos/dbus/image_burner_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698