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

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

Issue 2244693002: bluetooth: Refactor how we update based on Advertising Data (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Typo 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 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_DEVICE_BLUEZ_H_ 5 #ifndef DEVICE_BLUETOOTH_BLUEZ_BLUETOOTH_DEVICE_BLUEZ_H_
6 #define DEVICE_BLUETOOTH_BLUEZ_BLUETOOTH_DEVICE_BLUEZ_H_ 6 #define DEVICE_BLUETOOTH_BLUEZ_BLUETOOTH_DEVICE_BLUEZ_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 uint16_t GetVendorID() const override; 54 uint16_t GetVendorID() const override;
55 uint16_t GetProductID() const override; 55 uint16_t GetProductID() const override;
56 uint16_t GetDeviceID() const override; 56 uint16_t GetDeviceID() const override;
57 uint16_t GetAppearance() const override; 57 uint16_t GetAppearance() const override;
58 base::Optional<std::string> GetName() const override; 58 base::Optional<std::string> GetName() const override;
59 bool IsPaired() const override; 59 bool IsPaired() const override;
60 bool IsConnected() const override; 60 bool IsConnected() const override;
61 bool IsGattConnected() const override; 61 bool IsGattConnected() const override;
62 bool IsConnectable() const override; 62 bool IsConnectable() const override;
63 bool IsConnecting() const override; 63 bool IsConnecting() const override;
64 UUIDList GetUUIDs() const override; 64 UUIDSet GetUUIDs() const override;
65 base::Optional<int8_t> GetInquiryRSSI() const override; 65 base::Optional<int8_t> GetInquiryRSSI() const override;
66 base::Optional<int8_t> GetInquiryTxPower() const override; 66 base::Optional<int8_t> GetInquiryTxPower() const override;
67 bool ExpectingPinCode() const override; 67 bool ExpectingPinCode() const override;
68 bool ExpectingPasskey() const override; 68 bool ExpectingPasskey() const override;
69 bool ExpectingConfirmation() const override; 69 bool ExpectingConfirmation() const override;
70 void GetConnectionInfo(const ConnectionInfoCallback& callback) override; 70 void GetConnectionInfo(const ConnectionInfoCallback& callback) override;
71 void Connect(device::BluetoothDevice::PairingDelegate* pairing_delegate, 71 void Connect(device::BluetoothDevice::PairingDelegate* pairing_delegate,
72 const base::Closure& callback, 72 const base::Closure& callback,
73 const ConnectErrorCallback& error_callback) override; 73 const ConnectErrorCallback& error_callback) override;
74 void SetPinCode(const std::string& pincode) override; 74 void SetPinCode(const std::string& pincode) override;
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 // Called by dbus:: on failure of the D-Bus method call to unpair the device; 213 // Called by dbus:: on failure of the D-Bus method call to unpair the device;
214 // there is no matching completion call since this object is deleted in the 214 // there is no matching completion call since this object is deleted in the
215 // process of unpairing. 215 // process of unpairing.
216 void OnForgetError(const ErrorCallback& error_callback, 216 void OnForgetError(const ErrorCallback& error_callback,
217 const std::string& error_name, 217 const std::string& error_name,
218 const std::string& error_message); 218 const std::string& error_message);
219 219
220 // The dbus object path of the device object. 220 // The dbus object path of the device object.
221 dbus::ObjectPath object_path_; 221 dbus::ObjectPath object_path_;
222 222
223 BluetoothDevice::UUIDSet uuids_;
Jeffrey Yasskin 2016/08/19 22:08:10 I think you don't use this in the .cc file.
ortuno 2016/08/23 00:38:04 Ah right. This was leftover for when I was trying
224
223 // Number of ongoing calls to Connect(). 225 // Number of ongoing calls to Connect().
224 int num_connecting_calls_; 226 int num_connecting_calls_;
225 227
226 // True if the connection monitor has been started, tracking the connection 228 // True if the connection monitor has been started, tracking the connection
227 // RSSI and TX power. 229 // RSSI and TX power.
228 bool connection_monitor_started_; 230 bool connection_monitor_started_;
229 231
230 // Keeps track of all services for which we've called 232 // Keeps track of all services for which we've called
231 // NotifyGattDiscoveryComplete(). 233 // NotifyGattDiscoveryComplete().
232 std::unordered_set<device::BluetoothRemoteGattService*> 234 std::unordered_set<device::BluetoothRemoteGattService*>
(...skipping 12 matching lines...) Expand all
245 // Note: This should remain the last member so it'll be destroyed and 247 // Note: This should remain the last member so it'll be destroyed and
246 // invalidate its weak pointers before any other members are destroyed. 248 // invalidate its weak pointers before any other members are destroyed.
247 base::WeakPtrFactory<BluetoothDeviceBlueZ> weak_ptr_factory_; 249 base::WeakPtrFactory<BluetoothDeviceBlueZ> weak_ptr_factory_;
248 250
249 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceBlueZ); 251 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceBlueZ);
250 }; 252 };
251 253
252 } // namespace bluez 254 } // namespace bluez
253 255
254 #endif // DEVICE_BLUETOOTH_BLUEZ_BLUETOOTH_DEVICE_BLUEZ_H_ 256 #endif // DEVICE_BLUETOOTH_BLUEZ_BLUETOOTH_DEVICE_BLUEZ_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698