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

Side by Side Diff: components/proximity_auth/ble/bluetooth_low_energy_connection.h

Issue 1351353002: Using the GATT connection address instead of cached remote_device(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@update_connection_address
Patch Set: Rebasing Created 5 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
« no previous file with comments | « no previous file | components/proximity_auth/ble/bluetooth_low_energy_connection.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 COMPONENTS_PROXIMITY_AUTH_BLUETOOTH_LOW_ENERGY_CONNECTION_H 5 #ifndef COMPONENTS_PROXIMITY_AUTH_BLUETOOTH_LOW_ENERGY_CONNECTION_H
6 #define COMPONENTS_PROXIMITY_AUTH_BLUETOOTH_LOW_ENERGY_CONNECTION_H 6 #define COMPONENTS_PROXIMITY_AUTH_BLUETOOTH_LOW_ENERGY_CONNECTION_H
7 7
8 #include <queue> 8 #include <queue>
9 #include <string> 9 #include <string>
10 10
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 // Builds the value to be written on |to_peripheral_char_|. The value 215 // Builds the value to be written on |to_peripheral_char_|. The value
216 // corresponds to |signal| concatenated with |payload|. 216 // corresponds to |signal| concatenated with |payload|.
217 WriteRequest BuildWriteRequest(const std::vector<uint8>& signal, 217 WriteRequest BuildWriteRequest(const std::vector<uint8>& signal,
218 const std::vector<uint8>& bytes, 218 const std::vector<uint8>& bytes,
219 bool is_last_message_for_wire_message); 219 bool is_last_message_for_wire_message);
220 220
221 // Clears |write_requests_queue_|. 221 // Clears |write_requests_queue_|.
222 void ClearWriteRequestsQueue(); 222 void ClearWriteRequestsQueue();
223 223
224 // Returns the Bluetooth address of the remote device. 224 // Returns the Bluetooth address of the remote device.
225 const std::string& GetRemoteDeviceAddress(); 225 std::string GetRemoteDeviceAddress();
226 226
227 // Returns the device corresponding to |remote_device_address_|. 227 // Returns the device corresponding to |remote_device_address_|.
228 device::BluetoothDevice* GetRemoteDevice(); 228 device::BluetoothDevice* GetRemoteDevice();
229 229
230 // Returns the service corresponding to |remote_service_| in the current 230 // Returns the service corresponding to |remote_service_| in the current
231 // device. 231 // device.
232 device::BluetoothGattService* GetRemoteService(); 232 device::BluetoothGattService* GetRemoteService();
233 233
234 // Returns the characteristic corresponding to |identifier| in the current 234 // Returns the characteristic corresponding to |identifier| in the current
235 // service. 235 // service.
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 base::TimeDelta delay_after_gatt_connection_; 308 base::TimeDelta delay_after_gatt_connection_;
309 309
310 base::WeakPtrFactory<BluetoothLowEnergyConnection> weak_ptr_factory_; 310 base::WeakPtrFactory<BluetoothLowEnergyConnection> weak_ptr_factory_;
311 311
312 DISALLOW_COPY_AND_ASSIGN(BluetoothLowEnergyConnection); 312 DISALLOW_COPY_AND_ASSIGN(BluetoothLowEnergyConnection);
313 }; 313 };
314 314
315 } // namespace proximity_auth 315 } // namespace proximity_auth
316 316
317 #endif // COMPONENTS_PROXIMITY_AUTH_BLUETOOTH_LOW_ENERGY_CONNECTION_H 317 #endif // COMPONENTS_PROXIMITY_AUTH_BLUETOOTH_LOW_ENERGY_CONNECTION_H
OLDNEW
« no previous file with comments | « no previous file | components/proximity_auth/ble/bluetooth_low_energy_connection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698