| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_BLUEZ_H_ | 5 #ifndef DEVICE_BLUETOOTH_BLUEZ_BLUETOOTH_ADAPTER_BLUEZ_H_ |
| 6 #define DEVICE_BLUETOOTH_BLUEZ_BLUETOOTH_ADAPTER_BLUEZ_H_ | 6 #define DEVICE_BLUETOOTH_BLUEZ_BLUETOOTH_ADAPTER_BLUEZ_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 379 // our own class as its delegate. | 379 // our own class as its delegate. |
| 380 std::unique_ptr<bluez::BluetoothAgentServiceProvider> agent_; | 380 std::unique_ptr<bluez::BluetoothAgentServiceProvider> agent_; |
| 381 | 381 |
| 382 // UI thread task runner and socket thread object used to create sockets. | 382 // UI thread task runner and socket thread object used to create sockets. |
| 383 scoped_refptr<base::SequencedTaskRunner> ui_task_runner_; | 383 scoped_refptr<base::SequencedTaskRunner> ui_task_runner_; |
| 384 scoped_refptr<device::BluetoothSocketThread> socket_thread_; | 384 scoped_refptr<device::BluetoothSocketThread> socket_thread_; |
| 385 | 385 |
| 386 // The profiles we have registered with the bluetooth daemon. | 386 // The profiles we have registered with the bluetooth daemon. |
| 387 std::map<device::BluetoothUUID, BluetoothAdapterProfileBlueZ*> profiles_; | 387 std::map<device::BluetoothUUID, BluetoothAdapterProfileBlueZ*> profiles_; |
| 388 | 388 |
| 389 // Profiles that have been released and are pending removal. |
| 390 std::map<device::BluetoothUUID, BluetoothAdapterProfileBlueZ*> |
| 391 released_profiles_; |
| 392 |
| 389 // Queue of delegates waiting for a profile to register. | 393 // Queue of delegates waiting for a profile to register. |
| 390 std::map<device::BluetoothUUID, std::vector<RegisterProfileCompletionPair>*> | 394 std::map<device::BluetoothUUID, std::vector<RegisterProfileCompletionPair>*> |
| 391 profile_queues_; | 395 profile_queues_; |
| 392 | 396 |
| 393 std::unique_ptr<device::BluetoothDiscoveryFilter> current_filter_; | 397 std::unique_ptr<device::BluetoothDiscoveryFilter> current_filter_; |
| 394 | 398 |
| 395 std::vector<std::unique_ptr<BluetoothLocalGattServiceBlueZ>> | 399 std::vector<std::unique_ptr<BluetoothLocalGattServiceBlueZ>> |
| 396 owned_gatt_services_; | 400 owned_gatt_services_; |
| 397 | 401 |
| 398 // Note: This should remain the last member so it'll be destroyed and | 402 // Note: This should remain the last member so it'll be destroyed and |
| 399 // invalidate its weak pointers before any other members are destroyed. | 403 // invalidate its weak pointers before any other members are destroyed. |
| 400 base::WeakPtrFactory<BluetoothAdapterBlueZ> weak_ptr_factory_; | 404 base::WeakPtrFactory<BluetoothAdapterBlueZ> weak_ptr_factory_; |
| 401 | 405 |
| 402 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterBlueZ); | 406 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterBlueZ); |
| 403 }; | 407 }; |
| 404 | 408 |
| 405 } // namespace bluez | 409 } // namespace bluez |
| 406 | 410 |
| 407 #endif // DEVICE_BLUETOOTH_BLUEZ_BLUETOOTH_ADAPTER_BLUEZ_H_ | 411 #endif // DEVICE_BLUETOOTH_BLUEZ_BLUETOOTH_ADAPTER_BLUEZ_H_ |
| OLD | NEW |