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

Unified Diff: chromeos/dbus/cras_audio_client.h

Issue 23444057: Reduce chrome cras dbus call logs during device rebooting. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rename EnableLog Created 7 years, 3 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/audio/cras_audio_handler.cc ('k') | chromeos/dbus/cras_audio_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/dbus/cras_audio_client.h
diff --git a/chromeos/dbus/cras_audio_client.h b/chromeos/dbus/cras_audio_client.h
index 23063d8a2b2dc13fd308a9a6a4a619fe7f6d0a87..6d5def26f2207f62676372a9a55e8ccde588f91d 100644
--- a/chromeos/dbus/cras_audio_client.h
+++ b/chromeos/dbus/cras_audio_client.h
@@ -63,11 +63,18 @@ class CHROMEOS_EXPORT CrasAudioClient : public DBusClient {
// |success| which indicates whether or not the request succeeded.
typedef base::Callback<void(const AudioNodeList&, bool)> GetNodesCallback;
+ // ErrorCallback is used for cras dbus method error response. It receives 2
+ // arguments, |error_name| indicates the dbus error name, and |error_message|
+ // contains the detailed dbus error message.
+ typedef base::Callback<void(const std::string&,
+ const std::string&)> ErrorCallback;
+
// Gets the volume state, asynchronously.
virtual void GetVolumeState(const GetVolumeStateCallback& callback) = 0;
// Gets an array of audio input and output nodes.
- virtual void GetNodes(const GetNodesCallback& callback) = 0;
+ virtual void GetNodes(const GetNodesCallback& callback,
+ const ErrorCallback& error_callback) = 0;
// Sets output volume of the given |node_id| to |volume|, in the rage of
// [0, 100].
« no previous file with comments | « chromeos/audio/cras_audio_handler.cc ('k') | chromeos/dbus/cras_audio_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698