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

Unified Diff: device/bluetooth/bluetooth_adapter.h

Issue 12018024: Implemented Asynchronous Initialization of BluetoothAdapter. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Renamed RunCallbackOnAdapterReady to GetAdapter. Created 7 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_adapter.h
diff --git a/device/bluetooth/bluetooth_adapter.h b/device/bluetooth/bluetooth_adapter.h
index 30d7a95f41aadf7711f743b40df0af77ab8da53c..fd7c98337f95caecce81657faefd105f994fb10e 100644
--- a/device/bluetooth/bluetooth_adapter.h
+++ b/device/bluetooth/bluetooth_adapter.h
@@ -79,9 +79,6 @@ class BluetoothAdapter : public base::RefCounted<BluetoothAdapter> {
typedef base::Callback<void(const BluetoothOutOfBandPairingData& data)>
BluetoothOutOfBandPairingDataCallback;
- typedef base::Callback<void(scoped_refptr<BluetoothAdapter> adapter)>
- AdapterCallback;
-
// Adds and removes observers for events on this bluetooth adapter,
// if monitoring multiple adapters check the |adapter| parameter of
// observer methods to determine which adapter is issuing the event.
@@ -96,9 +93,6 @@ class BluetoothAdapter : public base::RefCounted<BluetoothAdapter> {
// The name of the adapter.
virtual const std::string& name() const;
- // Queue adapter callbacks to be run when the adapter is initialized.
- virtual void QueueAdapterCallback(const AdapterCallback& callback);
-
// Indicates whether the adapter is initialized and ready to use.
virtual bool IsInitialized() const = 0;
@@ -160,8 +154,6 @@ class BluetoothAdapter : public base::RefCounted<BluetoothAdapter> {
// Name of the adapter.
std::string name_;
- std::vector<AdapterCallback> adapter_callbacks_;
-
// Devices paired with, connected to, discovered by, or visible to the
// adapter. The key is the Bluetooth address of the device and the value
// is the BluetoothDevice object whose lifetime is managed by the

Powered by Google App Engine
This is Rietveld 408576698