| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_H_ | 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_H_ |
| 6 #define DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_H_ | 6 #define DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <list> | 10 #include <list> |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 // * GetServiceDataForUUID() | 94 // * GetServiceDataForUUID() |
| 95 // * GetManufacturerData() | 95 // * GetManufacturerData() |
| 96 // * GetManufacturerDataIDs() | 96 // * GetManufacturerDataIDs() |
| 97 // * GetManufacturerDataForID() | 97 // * GetManufacturerDataForID() |
| 98 // * GetAdvertisingDataFlags() | 98 // * GetAdvertisingDataFlags() |
| 99 // * IsConnectable() | 99 // * IsConnectable() |
| 100 // * IsConnected() | 100 // * IsConnected() |
| 101 // * IsConnecting() | 101 // * IsConnecting() |
| 102 // * IsGattConnected() | 102 // * IsGattConnected() |
| 103 // * IsPaired() | 103 // * IsPaired() |
| 104 // * IsTrustable() | |
| 105 // | 104 // |
| 106 // On Android and MacOS this method is called for each advertisement packet | 105 // On Android and MacOS this method is called for each advertisement packet |
| 107 // received. On Chrome OS and Linux, we can't guarantee that this method | 106 // received. On Chrome OS and Linux, we can't guarantee that this method |
| 108 // will be called for each Adv. Packet received but, because the RSSI is | 107 // will be called for each Adv. Packet received but, because the RSSI is |
| 109 // always changing, it's very likely this method will be called for each | 108 // always changing, it's very likely this method will be called for each |
| 110 // Adv. Packet. | 109 // Adv. Packet. |
| 111 // |device| should not be cached. Instead, copy its Bluetooth address. | 110 // |device| should not be cached. Instead, copy its Bluetooth address. |
| 112 virtual void DeviceChanged(BluetoothAdapter* adapter, | 111 virtual void DeviceChanged(BluetoothAdapter* adapter, |
| 113 BluetoothDevice* device) {} | 112 BluetoothDevice* device) {} |
| 114 | 113 |
| (...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 632 std::set<BluetoothDiscoverySession*> discovery_sessions_; | 631 std::set<BluetoothDiscoverySession*> discovery_sessions_; |
| 633 | 632 |
| 634 // Note: This should remain the last member so it'll be destroyed and | 633 // Note: This should remain the last member so it'll be destroyed and |
| 635 // invalidate its weak pointers before any other members are destroyed. | 634 // invalidate its weak pointers before any other members are destroyed. |
| 636 base::WeakPtrFactory<BluetoothAdapter> weak_ptr_factory_; | 635 base::WeakPtrFactory<BluetoothAdapter> weak_ptr_factory_; |
| 637 }; | 636 }; |
| 638 | 637 |
| 639 } // namespace device | 638 } // namespace device |
| 640 | 639 |
| 641 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_H_ | 640 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_H_ |
| OLD | NEW |