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

Unified Diff: device/bluetooth/dbus/bluetooth_media_transport_client.h

Issue 2317593002: dbus: No dbus::FileDescriptor in BluetoothMediaTransportClient (Closed)
Patch Set: Created 4 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
Index: device/bluetooth/dbus/bluetooth_media_transport_client.h
diff --git a/device/bluetooth/dbus/bluetooth_media_transport_client.h b/device/bluetooth/dbus/bluetooth_media_transport_client.h
index 728cfb5c47ea0f667578efa63d4bea438c9026fc..79c636554209fd2c383fb4445d361e36ef9d39e5 100644
--- a/device/bluetooth/dbus/bluetooth_media_transport_client.h
+++ b/device/bluetooth/dbus/bluetooth_media_transport_client.h
@@ -11,8 +11,8 @@
#include <vector>
#include "base/callback.h"
+#include "base/files/scoped_file.h"
#include "base/macros.h"
-#include "dbus/file_descriptor.h"
#include "dbus/object_path.h"
#include "dbus/property.h"
#include "device/bluetooth/bluetooth_export.h"
@@ -102,9 +102,10 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothMediaTransportClient
// The AcquireCallback is used by |Acquire| method of media tansport API tp
// indicate the success of the method.
- typedef base::Callback<void(dbus::FileDescriptor* fd,
+ typedef base::Callback<void(base::ScopedFD fd,
const uint16_t read_mtu,
- const uint16_t write_mtu)> AcquireCallback;
+ const uint16_t write_mtu)>
+ AcquireCallback;
// Adds and removes observers for events on all remote Media Transports. Check
// the |object_path| parameter of observer methods to determine which Media
« no previous file with comments | « device/bluetooth/bluez/bluetooth_audio_sink_bluez.cc ('k') | device/bluetooth/dbus/bluetooth_media_transport_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698