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

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

Issue 1908253005: Bluez: Move released profiles to a separate map. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
« no previous file with comments | « no previous file | device/bluetooth/bluez/bluetooth_adapter_bluez.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | device/bluetooth/bluez/bluetooth_adapter_bluez.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698