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

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

Issue 1472223002: Review comments from https://codereview.chromium.org/1415573014/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 4 years, 9 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/bluetooth_advertisement_bluez.h » ('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_BLUETOOTH_ADAPTER_BLUEZ_H_ 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_BLUEZ_H_
6 #define DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_BLUEZ_H_ 6 #define DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_BLUEZ_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 28 matching lines...) Expand all
39 namespace bluez { 39 namespace bluez {
40 40
41 class BluetoothBlueZTest; 41 class BluetoothBlueZTest;
42 class BluetoothAdapterProfileBlueZ; 42 class BluetoothAdapterProfileBlueZ;
43 class BluetoothDeviceBlueZ; 43 class BluetoothDeviceBlueZ;
44 class BluetoothPairingBlueZ; 44 class BluetoothPairingBlueZ;
45 class BluetoothRemoteGattCharacteristicBlueZ; 45 class BluetoothRemoteGattCharacteristicBlueZ;
46 class BluetoothRemoteGattDescriptorBlueZ; 46 class BluetoothRemoteGattDescriptorBlueZ;
47 class BluetoothRemoteGattServiceBlueZ; 47 class BluetoothRemoteGattServiceBlueZ;
48 48
49 // The BluetoothAdapterBlueZ class implements BluetoothAdapter for the 49 // The BluetoothAdapterBlueZ class implements BluetoothAdapter for platforms
50 // Chrome OS platform. 50 // that use BlueZ.
51 // 51 //
52 // All methods are called from the dbus origin / UI thread and are generally 52 // All methods are called from the dbus origin / UI thread and are generally
53 // not assumed to be thread-safe. 53 // not assumed to be thread-safe.
54 // 54 //
55 // This class interacts with sockets using the BluetoothSocketThread to ensure 55 // This class interacts with sockets using the BluetoothSocketThread to ensure
56 // single-threaded calls, and posts tasks to the UI thread. 56 // single-threaded calls, and posts tasks to the UI thread.
57 // 57 //
58 // Methods tolerate a shutdown scenario where BluetoothAdapterBlueZ::Shutdown 58 // Methods tolerate a shutdown scenario where BluetoothAdapterBlueZ::Shutdown
59 // causes IsPresent to return false just before the dbus system is shutdown but 59 // causes IsPresent to return false just before the dbus system is shutdown but
60 // while references to the BluetoothAdapterBlueZ object still exists. 60 // while references to the BluetoothAdapterBlueZ object still exists.
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 // Note: This should remain the last member so it'll be destroyed and 386 // Note: This should remain the last member so it'll be destroyed and
387 // invalidate its weak pointers before any other members are destroyed. 387 // invalidate its weak pointers before any other members are destroyed.
388 base::WeakPtrFactory<BluetoothAdapterBlueZ> weak_ptr_factory_; 388 base::WeakPtrFactory<BluetoothAdapterBlueZ> weak_ptr_factory_;
389 389
390 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterBlueZ); 390 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterBlueZ);
391 }; 391 };
392 392
393 } // namespace bluez 393 } // namespace bluez
394 394
395 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_BLUEZ_H_ 395 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_BLUEZ_H_
OLDNEW
« no previous file with comments | « no previous file | device/bluetooth/bluetooth_advertisement_bluez.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698