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

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

Issue 2205693003: bluetooth: Replace old advertised uuids (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@my-origin
Patch Set: Improve comments Created 4 years, 4 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
OLDNEW
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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 // * GetInquiryRSSI() 90 // * GetInquiryRSSI()
91 // * GetInquiryTxPower() 91 // * GetInquiryTxPower()
92 // * GetUUIDs() 92 // * GetUUIDs()
93 // * IsConnectable() 93 // * IsConnectable()
94 // * IsConnected() 94 // * IsConnected()
95 // * IsConnecting() 95 // * IsConnecting()
96 // * IsGattConnected() 96 // * IsGattConnected()
97 // * IsPaired() 97 // * IsPaired()
98 // * IsTrustable() 98 // * IsTrustable()
99 // 99 //
100 // 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
102 // will be called for each Adv. Packet received but, because the RSSI is
103 // always changing, it's very likely this method will be called for each
104 // Adv. Packet.
100 // |device| should not be cached. Instead, copy its Bluetooth address. 105 // |device| should not be cached. Instead, copy its Bluetooth address.
101 virtual void DeviceChanged(BluetoothAdapter* adapter, 106 virtual void DeviceChanged(BluetoothAdapter* adapter,
102 BluetoothDevice* device) {} 107 BluetoothDevice* device) {}
103 108
104 // Called when address property of the device |device| known to the adapter 109 // Called when address property of the device |device| known to the adapter
105 // |adapter| change due to pairing. 110 // |adapter| change due to pairing.
106 virtual void DeviceAddressChanged(BluetoothAdapter* adapter, 111 virtual void DeviceAddressChanged(BluetoothAdapter* adapter,
107 BluetoothDevice* device, 112 BluetoothDevice* device,
108 const std::string& old_address) {} 113 const std::string& old_address) {}
109 114
(...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after
607 std::set<BluetoothDiscoverySession*> discovery_sessions_; 612 std::set<BluetoothDiscoverySession*> discovery_sessions_;
608 613
609 // Note: This should remain the last member so it'll be destroyed and 614 // Note: This should remain the last member so it'll be destroyed and
610 // invalidate its weak pointers before any other members are destroyed. 615 // invalidate its weak pointers before any other members are destroyed.
611 base::WeakPtrFactory<BluetoothAdapter> weak_ptr_factory_; 616 base::WeakPtrFactory<BluetoothAdapter> weak_ptr_factory_;
612 }; 617 };
613 618
614 } // namespace device 619 } // namespace device
615 620
616 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_H_ 621 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698