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

Unified Diff: device/bluetooth/bluetooth_audio_sink_chromeos.h

Issue 876153002: device/bluetooth:Implement Register() for BluetoothAudioSinkChromeOS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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: device/bluetooth/bluetooth_audio_sink_chromeos.h
diff --git a/device/bluetooth/bluetooth_audio_sink_chromeos.h b/device/bluetooth/bluetooth_audio_sink_chromeos.h
index 3f9f839ddaebea0fd2e287be735849aa6ef202f1..9e83ea30556d5ac4b5616c451ffb22b0173882be 100644
--- a/device/bluetooth/bluetooth_audio_sink_chromeos.h
+++ b/device/bluetooth/bluetooth_audio_sink_chromeos.h
@@ -24,6 +24,8 @@
namespace chromeos {
+class BluetoothAdapterChromeOS;
armansito 2015/01/27 04:38:06 I don't see you dealing with BluetoothAdapterChrom
Miao 2015/01/28 02:05:02 Removed.
+
class DEVICE_BLUETOOTH_EXPORT BluetoothAudioSinkChromeOS
: public device::BluetoothAudioSink,
public device::BluetoothAdapter::Observer,
@@ -88,6 +90,14 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothAudioSinkChromeOS
// updated.
void VolumeChanged(uint16_t volume);
+ // Called when the registration of Media Endpoint Done.
armansito 2015/01/27 04:38:06 s/Done/has succeeded/
Miao 2015/01/28 02:05:01 Done.
+ void OnRegisterSucceeded(const base::Closure& callback);
+
+ // Called when the registration of Media Endpoint failed.
+ void OnRegisterFailed(const BluetoothAudioSink::ErrorCallback& error_back,
+ const std::string& error_name,
+ const std::string& error_message);
+
// Reads from the file descriptor acquired via Media Transport object and
// notify |observer_| while the audio data is available.
void ReadFromFD();

Powered by Google App Engine
This is Rietveld 408576698