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

Side by Side Diff: device/bluetooth/bluez/bluetooth_adapter_profile_bluez.h

Issue 2310883003: dbus: No dbus::FileDescriptor in BluetoothProfileServiceProvider (Closed)
Patch Set: Fix tests 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef DEVICE_BLUETOOTH_BLUEZ_BLUETOOTH_ADAPTER_PROFILE_BLUEZ_H_ 5 #ifndef DEVICE_BLUETOOTH_BLUEZ_BLUETOOTH_ADAPTER_PROFILE_BLUEZ_H_
6 #define DEVICE_BLUETOOTH_BLUEZ_BLUETOOTH_ADAPTER_PROFILE_BLUEZ_H_ 6 #define DEVICE_BLUETOOTH_BLUEZ_BLUETOOTH_ADAPTER_PROFILE_BLUEZ_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 // Returns the number of delegates for this profile. 73 // Returns the number of delegates for this profile.
74 size_t DelegateCount() const { return delegates_.size(); } 74 size_t DelegateCount() const { return delegates_.size(); }
75 75
76 private: 76 private:
77 BluetoothAdapterProfileBlueZ(const device::BluetoothUUID& uuid); 77 BluetoothAdapterProfileBlueZ(const device::BluetoothUUID& uuid);
78 78
79 // bluez::BluetoothProfileServiceProvider::Delegate: 79 // bluez::BluetoothProfileServiceProvider::Delegate:
80 void Released() override; 80 void Released() override;
81 void NewConnection( 81 void NewConnection(
82 const dbus::ObjectPath& device_path, 82 const dbus::ObjectPath& device_path,
83 std::unique_ptr<dbus::FileDescriptor> fd, 83 base::ScopedFD fd,
84 const bluez::BluetoothProfileServiceProvider::Delegate::Options& options, 84 const bluez::BluetoothProfileServiceProvider::Delegate::Options& options,
85 const ConfirmationCallback& callback) override; 85 const ConfirmationCallback& callback) override;
86 void RequestDisconnection(const dbus::ObjectPath& device_path, 86 void RequestDisconnection(const dbus::ObjectPath& device_path,
87 const ConfirmationCallback& callback) override; 87 const ConfirmationCallback& callback) override;
88 void Cancel() override; 88 void Cancel() override;
89 89
90 // Called by dbus:: on completion of the D-Bus method to unregister a profile. 90 // Called by dbus:: on completion of the D-Bus method to unregister a profile.
91 void OnUnregisterProfileError(const base::Closure& unregistered_callback, 91 void OnUnregisterProfileError(const base::Closure& unregistered_callback,
92 const std::string& error_name, 92 const std::string& error_name,
93 const std::string& error_message); 93 const std::string& error_message);
(...skipping 14 matching lines...) Expand all
108 // Note: This should remain the last member so it'll be destroyed and 108 // Note: This should remain the last member so it'll be destroyed and
109 // invalidate its weak pointers before any other members are destroyed. 109 // invalidate its weak pointers before any other members are destroyed.
110 base::WeakPtrFactory<BluetoothAdapterProfileBlueZ> weak_ptr_factory_; 110 base::WeakPtrFactory<BluetoothAdapterProfileBlueZ> weak_ptr_factory_;
111 111
112 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterProfileBlueZ); 112 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterProfileBlueZ);
113 }; 113 };
114 114
115 } // namespace bluez 115 } // namespace bluez
116 116
117 #endif // DEVICE_BLUETOOTH_BLUEZ_BLUETOOTH_ADAPTER_PROFILE_BLUEZ_H_ 117 #endif // DEVICE_BLUETOOTH_BLUEZ_BLUETOOTH_ADAPTER_PROFILE_BLUEZ_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698