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

Side by Side Diff: device/bluetooth/bluetooth_device_win.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: Rebase Created 4 years, 3 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_DEVICE_WIN_H_ 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_WIN_H_
6 #define DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_WIN_H_ 6 #define DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_WIN_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 29 matching lines...) Expand all
40 uint16_t GetVendorID() const override; 40 uint16_t GetVendorID() const override;
41 uint16_t GetProductID() const override; 41 uint16_t GetProductID() const override;
42 uint16_t GetDeviceID() const override; 42 uint16_t GetDeviceID() const override;
43 uint16_t GetAppearance() const override; 43 uint16_t GetAppearance() const override;
44 base::Optional<std::string> GetName() const override; 44 base::Optional<std::string> GetName() const override;
45 bool IsPaired() const override; 45 bool IsPaired() const override;
46 bool IsConnected() const override; 46 bool IsConnected() const override;
47 bool IsGattConnected() const override; 47 bool IsGattConnected() const override;
48 bool IsConnectable() const override; 48 bool IsConnectable() const override;
49 bool IsConnecting() const override; 49 bool IsConnecting() const override;
50 UUIDList GetUUIDs() const override; 50 UUIDSet GetUUIDs() const override;
51 base::Optional<int8_t> GetInquiryRSSI() const override; 51 base::Optional<int8_t> GetInquiryRSSI() const override;
52 base::Optional<int8_t> GetInquiryTxPower() const override; 52 base::Optional<int8_t> GetInquiryTxPower() const override;
53 bool ExpectingPinCode() const override; 53 bool ExpectingPinCode() const override;
54 bool ExpectingPasskey() const override; 54 bool ExpectingPasskey() const override;
55 bool ExpectingConfirmation() const override; 55 bool ExpectingConfirmation() const override;
56 void GetConnectionInfo(const ConnectionInfoCallback& callback) override; 56 void GetConnectionInfo(const ConnectionInfoCallback& callback) override;
57 void Connect(PairingDelegate* pairing_delegate, 57 void Connect(PairingDelegate* pairing_delegate,
58 const base::Closure& callback, 58 const base::Closure& callback,
59 const ConnectErrorCallback& error_callback) override; 59 const ConnectErrorCallback& error_callback) override;
60 void SetPinCode(const std::string& pincode) override; 60 void SetPinCode(const std::string& pincode) override;
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 // Tracked device state, updated by the adapter managing the lifecycle of 142 // Tracked device state, updated by the adapter managing the lifecycle of
143 // the device. 143 // the device.
144 bool paired_; 144 bool paired_;
145 bool connected_; 145 bool connected_;
146 146
147 // Used to send change notifications when a device disappears during 147 // Used to send change notifications when a device disappears during
148 // discovery. 148 // discovery.
149 bool visible_; 149 bool visible_;
150 150
151 // The services (identified by UUIDs) that this device provides. 151 // The services (identified by UUIDs) that this device provides.
152 UUIDList uuids_; 152 UUIDSet uuids_;
153 153
154 // The service records retrieved from SDP. 154 // The service records retrieved from SDP.
155 ServiceRecordList service_record_list_; 155 ServiceRecordList service_record_list_;
156 156
157 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceWin); 157 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceWin);
158 }; 158 };
159 159
160 } // namespace device 160 } // namespace device
161 161
162 #endif // DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_WIN_H_ 162 #endif // DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698