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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 BluetoothDevice* device) {} | 83 BluetoothDevice* device) {} |
84 | 84 |
85 // Called when the result of one of the following methods of the device | 85 // Called when the result of one of the following methods of the device |
86 // |device| changes: | 86 // |device| changes: |
87 // * GetAddress() | 87 // * GetAddress() |
88 // * GetAppearance() | 88 // * GetAppearance() |
89 // * GetBluetoothClass() | 89 // * GetBluetoothClass() |
90 // * GetInquiryRSSI() | 90 // * GetInquiryRSSI() |
91 // * GetInquiryTxPower() | 91 // * GetInquiryTxPower() |
92 // * GetUUIDs() | 92 // * GetUUIDs() |
| 93 // * GetServiceData() |
| 94 // * GetServiceDataUUIDs() |
| 95 // * GetServiceDataForUUID() |
| 96 // * GetManufacturerData() |
| 97 // * GetManufacturerDataIDs() |
| 98 // * GetManufacturerDataForID() |
| 99 // * GetAdvertisingDataFlags() |
93 // * IsConnectable() | 100 // * IsConnectable() |
94 // * IsConnected() | 101 // * IsConnected() |
95 // * IsConnecting() | 102 // * IsConnecting() |
96 // * IsGattConnected() | 103 // * IsGattConnected() |
97 // * IsPaired() | 104 // * IsPaired() |
98 // * IsTrustable() | 105 // * IsTrustable() |
99 // | 106 // |
100 // On Android and MacOS this method is called for each advertisement packet | 107 // On Android and MacOS this method is called for each advertisement packet |
101 // received. On Chrome OS and Linux, we can't guarantee that this method | 108 // received. On Chrome OS and Linux, we can't guarantee that this method |
102 // will be called for each Adv. Packet received but, because the RSSI is | 109 // will be called for each Adv. Packet received but, because the RSSI is |
(...skipping 512 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
615 std::set<BluetoothDiscoverySession*> discovery_sessions_; | 622 std::set<BluetoothDiscoverySession*> discovery_sessions_; |
616 | 623 |
617 // Note: This should remain the last member so it'll be destroyed and | 624 // Note: This should remain the last member so it'll be destroyed and |
618 // invalidate its weak pointers before any other members are destroyed. | 625 // invalidate its weak pointers before any other members are destroyed. |
619 base::WeakPtrFactory<BluetoothAdapter> weak_ptr_factory_; | 626 base::WeakPtrFactory<BluetoothAdapter> weak_ptr_factory_; |
620 }; | 627 }; |
621 | 628 |
622 } // namespace device | 629 } // namespace device |
623 | 630 |
624 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_H_ | 631 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_H_ |
OLD | NEW |